On 30-Nov-07, at 10:27 PM, Joe Strout wrote:
> The code works well; the only hitch is that none of the date formats
> (LongDate, AbbreviatedDate, or ShortDate) match what Mail displays.
> Our LongDate includes the day of the week: "Friday, November 30,
> 2007". The next shortest is AbbreviatedDate, which leaves out the
> day of the week but also abbreviates the month: "Nov 30, 2007".
>
> Mail uses an in-between format with the full month name, but no day
> of week: "November 30, 2007".
>
> This is surprisingly difficult to do in RB. The Date class doesn't
> have a method to give you the month name as a string, and I can't
> think of any particularly elegant way to get it from the system.
I wrote some code to do this pretty accurately quite some time ago
(it's 5.5 code)
It's on my web site under
http://great-white-software.com/day_n_month_names.zip
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|