Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
30rakesh
Regular Visitor

Get Current UTC datetime

Hi,

 

Can anyone please suggest me on how to get the current datetime in UTC. I used function Now() but it is returning the current system local time.

 

Thanks

Rakesh

3 REPLIES 3
elliotdixon
Responsive Resident
Responsive Resident

Hi @30rakesh I use a slightly different formula to @Greg_Deckler

 

Find your timezone e.g. mine is New Zealand +13hours for summer time.

and use code

 

Date NZTimeZone_NowDateTime = NOW()+(13/24)

unfortunatley I have to remember to change this back after daylight savings time.

SabineOussi
Skilled Sharer
Skilled Sharer

Hi rakesh,

 

I am not aware of a way to do it in DAX, but you can do it in M by going to edit queries and adding a custom column with the formula: DateTimeZone.UtcNow()

 

If you still want do it in DAX and use it as a measure, you can get your current timezone by using Now() and adding or substrating hours in order to get UTC time.

 

Hope this helps!

 

To subtract 1 hour from NOW, you can use a formula like:

 

Column = NOW() - 0.04166666666666667

For 2 hours:

Column = NOW() - 0.04166666666666667*2

etc.

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.