|Think about Loose Coupling|
Fetching Only Month and Year From localtime()by amt (Monk)
|on Jan 05, 2005 at 16:53 UTC||Need Help??|
amt has asked for the
wisdom of the Perl Monks concerning the following question:
I'm looking to grab the current month and current year to default in a form, but I don't want to create an array. Can I access the localtime elements directly with localtime or is there another method.
Update: Many thanks. As Juerd mentioned, I was trying reform the date to the mysql format. I guess I could have just used POSIX::strtime, as mentioned in perlcheat, which is in my sig. :/