Forum Discussion

karimk's avatar
karimk
Helper III
8 years ago
Solved

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

  • Anonymous's avatar
    Anonymous
    8 years ago

    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:

2 Replies

  • Anonymous's avatar
    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:

    • karimk's avatar
      karimk
      Helper III

      Hi Anonymous

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

      Thank you.