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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
PPStar
Helper V
Helper V

Format DateTime.LocalNow()

Hello, 

I have a dataflow and i need to include the last refresh date in that dataflow. 

I created a new blank query and entered the following code : 

DateTime.LocalNow()
 
This correclty returns me the date time now. 
 
However, the users who will be using this dataflow are all based in the united states. 
 
How can i format this 
DateTime.LocalNow() to show as mm/dd/yyy hh:mm:ss 
Or, just to show as 14th Febuary 2024 10:01:22
 
Thanks 
1 ACCEPTED SOLUTION
katemarkoska
Frequent Visitor

Hi @PPStar 
You do not need to format anything. This function returns a datetime value set to the current date and time on the system.
So if the users are in the US and the region on their system is set to US it will automatically format as mm/dd/yyy hh:mm:ss.

View solution in original post

3 REPLIES 3
katemarkoska
Frequent Visitor

Hi @PPStar 
You do not need to format anything. This function returns a datetime value set to the current date and time on the system.
So if the users are in the US and the region on their system is set to US it will automatically format as mm/dd/yyy hh:mm:ss.

Thanks Kate. I just tested this and you are correct. Thank you. 

Idrissshatila
Super User
Super User

Hello @PPStar ,

 

check this video https://youtu.be/eH9dHfNG8kg?si=lWwD8RbJhb7Dxnv2

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.