Hello guys,
I have input value from html<input type="datetime-local>
example 2022-09-03T15:43+07:00
After saving it to dataverse, it is converted to UTC timezone. Now I need to display it to local user in format
9/3/2022 3:43 PM or
3 Sep 2022 3:43 PM
I tried to use convertfromUTC expresstion and ConvertTimeZone action but it requires destination to be text not UTC+7:00 format. I do not want to select it manually as user might come from other timezones.
Thinking of using addHour expression but it requires interval to be integer. How if the user is in timezone with +5:30 ?
Hope any solution for displaying the datetime-local value in format:
9/3/2022 3:43 PM or
3 Sep 2022 3:43 PM
Thank you
Hi @David_Nguyen_vn ,
Thinking of using addHour expression but it requires interval to be integer. How if the user is in timezone with +5:30 ?
You could use addMinutes instead.
Best Reagrds,
Bof
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional