Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have a date column with the current date right now using this formula:
= DateTime.LocalNow())
I do NOT want seconds, however, but do want AM/PM shown. I tried the following:
Date.ToText(DateTime.Time(DateTime.LocalNow()), "MM-dd-yy AM/PM")
It simply won't display properly for whatever reason... it results in error
Solved! Go to Solution.
Please try this formula instead
= DateTime.ToText(DateTime.LocalNow(), "MM-dd-yy tt")
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please try this formula instead
= DateTime.ToText(DateTime.LocalNow(), "MM-dd-yy tt")
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
86 | |
85 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |