Board index » delphi » Date from system -> String VAR

Date from system -> String VAR

Can anyone give me a simple sample code that will get the date from dos,
and then store that into a string variable in standard short-American
format, ie: ( mm/dd/yy )?

Thanks in advance for your help.

 

Re:Date from system -> String VAR


In <46ehpq$...@newsbf02.news.aol.com>, hyfo...@aol.com (HyFolks) writes:

Quote
>Can anyone give me a simple sample code that will get the date from dos,
>and then store that into a string variable in standard short-American
>format, ie: ( mm/dd/yy )?

>Thanks in advance for your help.

In Turbo Pascal, the 'GetTime() procedure will accomplish most of your
request.  From there the Str() procedure, strategically applied, will
do the rest.  

--
Wayne D. Hoxsie Jr. <hoxs...@crl.com>
finger or http://www.crl.com/~hoxsiew for PGP key

Other Threads