i have a simple SQL query:
SELECT now()
it returns the date and time in format: YYYY-MMM-DD HH:MM:SS for example: 2013-01-20 21:26:36
I’m using this value as part of a file name, the problem is that the char ‘:’ is not allowed.
how can I change the time format to something without ':'?
for example: YYYY-MMM-DD HHMMSS
I’ve read a lot about the subject and i couldn’t find any form of date and time without the ':', i found with AM/PM.. or different date formats.. but time is always ':'.
1 Answer