RE: Date stamping files

2001-05-01 Thread Grant McLean
I used the sprintf() function to add in the required leading zeros. Regards Grant > -Original Message- > From: Mark Martin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 1 May 2001 22:19 > To: [EMAIL PROTECTED] > Subject: Date stamping files > > > Does anybody know how

Date stamping files

2001-05-01 Thread Mark Martin
Does anybody know how to clean up the system time : Tue May 1 10:18:32 BST 2001 or select only part of it to give a more managable date format that can be used to stamp an output file from a program : $a = system ("date"); # OR A TRUNCATED VERSION # OR CLEAN IT UP HERE ??? $b = "filenam