Forum Discussion

PPStar's avatar
PPStar
Helper V
2 years ago
Solved

Format DateTime.LocalNow()

Hello,  I have a dataflow and i need to include the last refresh date in that dataflow.  I created a new blank query and entered the following code :  DateTime.LocalNow()   This correclty retur...
  • katemarkoska's avatar
    2 years ago

    Hi PPStar 
    You do not need to format anything. This function returns a datetime value set to the current date and time on the system.
    So if the users are in the US and the region on their system is set to US it will automatically format as mm/dd/yyy hh:mm:ss.