> See XLFDT it is more robust than what you show here. I didn't notice that you say XLFDT is MORE robust than what I showed. Can you give an example that you feel my function would not be able to do?
Kevin --- smcphelan <[EMAIL PROTECTED]> wrote: > It is nice you have developed a M API to convert > dates. Everything you show > here (except for the at exactly) has been part of > VistA for 10 years or > more... See XLFDT it is more robust than what you > show here. > > ----- Original Message ----- > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > To: "Hardhats Sourceforge" > <hardhats-members@lists.sourceforge.net> > Sent: Sunday, May 15, 2005 8:37 PM > Subject: [Hardhats-members] Custom Fileman date > output formatting. > > > > 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 > > > > > > > ------------------------------------------------------- > 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=7412&alloc_id=16344&op=click > _______________________________________________ > Hardhats-members mailing list > Hardhats-members@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hardhats-members > __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail ------------------------------------------------------- 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=7412&alloc_id=16344&op=click _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members