I have a date/time string like this: 180510_112440 in this format ddmmyy_hhmmss
I need a snippet for having a string formatted like this way: 2010-05-18 11:24:40
Thanks for help.
I have a date/time string like this: 180510_112440 in this format ddmmyy_hhmmss I need
Share
another possible answer is the common use of strptime to parse your date and the mktime function: