[futurebasic] Re: [FB] How can I get the date in mm/dd/yyyy format

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Thu, 02 Sep 1999 00:42:53 +0200

Jayson Garrett wrote:

> The subject pretty much says it all. :-)
>
> Can someone show me an example of how to get the system date in mmddyyyy
> format? DATE$() only returns 2 digits for the year, and I need to retrofit a
> program I have for the new year.
>
> Thanks in advance!
>
> <<Jayson Garrett>>
>

Jayson,

Where have you been?
I think the answer was posted by Mel a couple of weeks ago.

Cut from his reply:
<CITE>
Use the toolbox to get the type of string you want :

         CALL IUDATESTRING([_time],0,temp$):'         get the date right now
         CALL MOVETO(336,44):'                      where to display this at
         TEXT _geneva,10,_boldBit%,_srcOr
         CALL DRAWSTRING(temp$):'                          and show the date

0 = short date 1/10/1998
1 = long date Wednesday, February 1, 1989
2 = abbrev. date , Wed, Feb 1, 1989

I used to use this when doing apps that would run in different
countries because you know what you'll get. Unlike Forrest Gump.


Mel Patrick
mel@...
</CITE>