Forum Discussion
How to display timestamp with AM and PM
- 9 years ago
I'm not exactly sure about "16:50 AM" (shouldn't it be 4:50 AM?), but there are at least two ways to accomplish your goal:
- Change formatting of the column
- Explicitly format the column as a text string:
Gettime = FORMAT ( NOW(), "h:mm am/pm" )
If you are using a card visual, the end result is almost the same. The second approach allows you to define capitalization (am/pm or AM/PM).
- Change formatting of the column
I'm not exactly sure about "16:50 AM" (shouldn't it be 4:50 AM?), but there are at least two ways to accomplish your goal:
- Change formatting of the column
- Explicitly format the column as a text string:
Gettime = FORMAT ( NOW(), "h:mm am/pm" )
If you are using a card visual, the end result is almost the same. The second approach allows you to define capitalization (am/pm or AM/PM).
This is extremely helpful. It's odd that DAX and the column version are different sets of formatting, for me it was specifically the "tt" for AM/PM in one and just plain "AM/PM" in the other. In any event, it worked. Thank you.