Thank you very much Perderabo, but I realized something after I posted my question. I need the format of the date to be '02-dec-2005:15:30'. I need to have the date included so my script will work after midnight on the next day. Do you have any idea how to accomplish that?