Datetime.Now bringing back wrong time

Lowercase “hh” means hours from 01 to 12. To get hours from 0 to 23 you need to use “HH”.

“ss” means seconds - in your code there’s seconds slot in place of minutes.

1 Like