I may have just reinvented the wheel, but I don't
think so.  I have just finished a function that will
format fileman dates in any arbitrary way, based on
format strings.  For example:

w $$DTFormat(FMDate,"mm/dd/yy") --> 10/13/79
w $$DTFormat(FMDate,"mm/dd/yyyy") --> 10/13/1979
w $$DTFormat(FMDate,"mmm dd,yyyy") --> Oct 13,1979
w $$DTFormat(FMDate,"mmmm dd,yyyy") --> October
13,1979
w $$DTFormat(FMDate,"mmmm dd,yyyy 'at exactly' HH:MM
#") --> October 13,1979 at exactly 2:15 pm

The format string allows any mix and match order.  It
has appropriate codes for formatting 24 vs 12 hr
clock.  Month numbers, short-names, or long names. 
Year in 2 or 4 digits.  Numbers with or with-out a
leading 0.

This function is based roughly on the way that Delphi
handles datetime formatting.

If anyone wants a copy of the function let me know.  I
just tried to post it on the wikki, and apparently the
Sourceforge host is down for the moment.

Kevin




                
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to