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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.