Re: Date Formatter fun
Re: Date Formatter fun
- Subject: Re: Date Formatter fun
- From: Jeremy Dronfield <email@hidden>
- Date: Mon, 14 Feb 2005 11:42:47 +0000
On 14 Feb 2005, at 2:39 am, Duncan Campbell wrote:
Hey folks - i'm using a dateformatter to get a nice looking datetime:
[today descriptionWithCalendarFormat:@"%a %I:%M %p"]
however, I'm a little annoyed that the "hour" formatter (the %I)
always gives the hour as a 2-digit - i.e. 9:45am will be formatted as
09:45am.
Use %1I for the hour to chop the leading zero.
Regards,
-Jeremy
===================================
SkoobySoft, home of viJournal and Skooby Renamer
email: email@hidden or visit:
http://freespace.virgin.net/jeremy.dronfield/skoobysoft.html
===================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden