Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Change date format on cards

Hi,

 

Im currently working on a report where i would like to show the Earliest Refresh Date. I've used a custom query to get there:

#"Added Refresh Date" = Table.AddColumn(#"03fe857e-f8df-4d61-800f-fa039735deda_Table", "Refresh Date", 
        each DateTimeZone.FixedLocalNow(), type datetimezone)

This works, and it creates a new column with the date formatted and I later removed the timezone by changing the data type to Date/Time. The column looks like this:

 

Unfortuniatly in the Card it shows it like:

Besides that i also tried to set the locale to the Netherlands, since thats where im from, this didnt work.

Also i tried changing the format in the Model designer to the format i would like to see in the card, also did not work.

 

The best format would be;

20-05-2019  10:33
And then a 24h notation like:

20-05-2019  14:25

 

If anybody could help me with this problem that would be awesome!
Thanks in advance.

  • Anonymous's avatar
    Anonymous
    7 years ago

    In the model creater i used the date format (G). When i switched it to (DD-MM-YYYY HH:mm:ss) it worked. 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    In the model creater i used the date format (G). When i switched it to (DD-MM-YYYY HH:mm:ss) it worked.