im having trouble formatting my timestamp correctly. For example, (im using the 'NOW()' function) it displays the timestamp as [20030117242424]. Im much rather like it to display it as '2003-01-17 24:24:24'.
I found the section in the manual that discusses this function, but i still can't get it to do what i want.
NOW()
SYSDATE()
CURRENT_TIMESTAMP
Returns the current date and time as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS format, depending on whether the function is used in a string or numeric context:
mysql> SELECT NOW();
-> '1997-12-15 23:50:26'
mysql> SELECT NOW() + 0;
-> 19971215235026
Note that NOW() is only evaluated once per query, namely at the start of query execution. This means that multiple references to NOW() within a single query will always give the same time.
thanks for any help
-Steve