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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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