Newbee21369
Programmer
Hi,
How do I format $FILE_TS (01-JAN-05) to look like: 01/01/2005 13:36:27
Currently I tried: $FILE_TS = sprintf("%02d/%02d/%04d %02d:%02d:%02d",($tm->mon)+1,$tm->mday,($tm->year)+1900,$tm->hour,$tm->min,$tm->sec);
Printing: 05/17/2005 13:36:27
Format is what I want but it's giving today's date.
Thanks in Advance!!
How do I format $FILE_TS (01-JAN-05) to look like: 01/01/2005 13:36:27
Currently I tried: $FILE_TS = sprintf("%02d/%02d/%04d %02d:%02d:%02d",($tm->mon)+1,$tm->mday,($tm->year)+1900,$tm->hour,$tm->min,$tm->sec);
Printing: 05/17/2005 13:36:27
Format is what I want but it's giving today's date.
Thanks in Advance!!