cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RajSaha_
Helper III
Helper III

Not able to capture current date and time in share point using of powerapps

Hello All,

Need your help

Not able able capture current date and time.
In powerapps I'm using "Set(Ctime,Text(Now(),DateTimeFormat.LongDateTime24))"
in the patch function I'm using 

RajSaha__0-1603954138947.png

But in the sharepoint I'm able to see only current date is capturing not the current time 

RajSaha__1-1603954214934.png
How to save current date and time value in sharepoint. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @RajSaha_ :

Could you tell me:

  • Is the time you saved to SharePoint different from the current time by a few hours?

Firstly,let me explain why you encounted this problem.

The point is TimeZone.The time in your App is the local time. When the time is saved to sharepoint, it will be converted according to the time zone set by your SharePoint Site. So the time you get is different from the time in the App.

Secondly,I have two soltuions:

Solution1:Modify the formla

RecordCreatedDate:DateAdd(DateTimeValue(Ctime),X,Hours),

Solution2:Change the TimeZone of your SharePoint Site

Site contents>Site Settings>Site Administration>Regional settings

1.JPG2.JPG

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @RajSaha_ :

Could you tell me:

  • Is the time you saved to SharePoint different from the current time by a few hours?

Firstly,let me explain why you encounted this problem.

The point is TimeZone.The time in your App is the local time. When the time is saved to sharepoint, it will be converted according to the time zone set by your SharePoint Site. So the time you get is different from the time in the App.

Secondly,I have two soltuions:

Solution1:Modify the formla

RecordCreatedDate:DateAdd(DateTimeValue(Ctime),X,Hours),

Solution2:Change the TimeZone of your SharePoint Site

Site contents>Site Settings>Site Administration>Regional settings

1.JPG2.JPG

Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (21,556)