use Time::Local;
use POSIX;
$TODAY = strftime("%d%m%Y", localtime());
print $TODAY;
13062003
-----Original Message-----
From: Praful Bajaria [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 12:02
To: [EMAIL PROTECTED]
Subject: How to get ddmmyyyy format.
All,
How would I get ddmmyyyy format of time in a variable.
Once I get this format (value in variable),I would
like to append to a file.
$currtime = time();
@currtime = gmtime($currtime);
print " @currtime \n ";
but the above code doen't give me yyyy.
Thanks
Praful
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]