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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,853)