Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I want to convert Date & Time into CST, GMT, SGT, EST, IST timezone.
I have date columns and also created Refresh date time which should change by clikcing on Timezone.
Solved! Go to Solution.
You can use DateTimeZone.SwitchZone function, for example
DateTime.LocalNow() leads to curent date and time at your location but the next fromula convert it to GMT (UTC+0)
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), 0)
Example for CST (UTC-6):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), -6)
Example for SGT (UTC+8):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), 😎
Example for EST (UTC-5):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), -5)
Example for IST (UTC+5:30):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), 5.5)
You can use DateTimeZone.SwitchZone function, for example
DateTime.LocalNow() leads to curent date and time at your location but the next fromula convert it to GMT (UTC+0)
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), 0)
Example for CST (UTC-6):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), -6)
Example for SGT (UTC+8):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), 😎
Example for EST (UTC-5):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), -5)
Example for IST (UTC+5:30):
DateTimeZone.SwitchZone(DateTimeZone.LocalNow(), 5.5)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |