Check out the Basic Usage section of the DateTime FAQ.  The "How can I
get a string representing a date?" section likely shows you everything
you need.

http://datetime.perl.org/index.cgi?FAQBasicUsage

Bobby

-----Original Message-----
From: Brian Hirt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 08, 2008 10:16 AM
To: [email protected]
Subject: Question about printing month/day

Hello,

I'm trying to find a way to print a month name and the day of the  
month for a selected locale without the year.   I can't seem to find  
anyway to do this correctly.   Essentially what i want is something like

        $date->strftime($locale->long_date_format)

excluding the year.   Is this possible?   I'm looking through the  
defined format strings in the locale files and have come to the  
conclusion that this isn't possible unless I want to maintain a  
separate list of format strings for each locale in my own code.   
However, this seems like such a common thing to do, I'm sure I must be  
missing something.  Hopefully I'm missing the obvious.  Any advice  
would be much appreciated.

Thanks,

Brian

Reply via email to