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

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (5,039)