realbasic-nug
[Top] [All Lists]

Re: needed for Zymail: a constrained date formatter

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: needed for Zymail: a constrained date formatter
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Fri, 30 Nov 2007 22:51:25 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <301886FD-8006-4C0A-8B3E-6297D15426B6 at alacatialabs dot com> <841DE13F-02D7-4F57-A6BC-A54DE43D98A7 at inspiringapps dot com> <26BC04D6-C769-4E16-A3E3-71537E4B52A9 at inspiringapps dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>