Forum Discussion

IF's avatar
IF
Post Prodigy
2 years ago
Solved

text format date in power query - m

i tried the code: = Date.ToText(Date.From(DateTime.LocalNow()), "dd.MM.yyyy") to get the date in text format, but i got wrong result as attached. it shows "00" instead of "12".  is there any other way to solve it or get the date with dd, mm, yyyy format? thanks in advance

6 Replies

    • IF's avatar
      IF
      Post Prodigy

      No, it is not working to use it as an input to get data from the SAP. 

  • Hi

    MM = month

    mm = minutes

     

     

  • Hi @Syndicate_Admin 

    Please try below code

     

    = Date.ToText(Date.From(DateTime.LocalNow()), [Format="dd MM yyyy"])

     

     


    If solved your requirement, please mark this answer as SOLUTION.
    If this comment helps you, appreciate your KUDOS 👍

     

    Thanks
    Pijush