DateTime.now() to timeformat

#1

How can I convert DateTime.now() to a regular date time: dd-mm-yyyy hh:mm:ss?

0 Likes

#2

Try something like DateTime.now().toString('dd-mm-yyyy hh:mm:ss')

0 Likes