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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
karimk
Helper III
Helper III

DateTime.LocalNow() = Wrong Date

Hi,

I´m trying to create a card with the dataset refresh date that will work correctly with my desktop file and the report server, but among many solutions I always see the use of the DateTime.LocalNow() formula. It outputs the correct time, but a wrong date (03/07/2018). Any idea on why is this?

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

That's outputting a day/month/year format; how are you reading the data? The actual data it returns can be shown in day/month/year or month/day/year format, or however you prefer in the frontend.

 

Check the actual output in the query editor:

image.png

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

That's outputting a day/month/year format; how are you reading the data? The actual data it returns can be shown in day/month/year or month/day/year format, or however you prefer in the frontend.

 

Check the actual output in the query editor:

image.png

Hi @Anonymous

I´m sorry. It was that obvious. I was thinking of March 7th.

Thank you.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.