1. Help for the Date() format
- Posted by Matt <matt1 at MEDIACOM.IT> Jul 14, 1997
- 662 views
- Last edited Jul 15, 1997
Hi to everybody from a newcomer... I have the need the read the system's date in a 4-digit format. Euphoria's Date() returns only the last two digit of the year... Any suggestions? (Please don't tell me to just add "19" in front... :) Thanks in advance! Matt
2. Re: Help for the Date() format
- Posted by Irv <mountains at MINDSPRING.COM> Jul 14, 1997
- 632 views
Matt wrote: > Hi to everybody from a newcomer... > > I have the need the read the system's date in a 4-digit format. > Euphoria's Date() returns only the last two digit of the year... > Any suggestions? (Please don't tell me to just add "19" in front... :) > > Thanks in advance! > > Matt After 1999, the date() routine will return 100, 101, 102, etc, (meaning 2000, 2001, 2002, etc) DOS wasn't supposed to last this long, you know... Irv
3. Re: Help for the Date() format
- Posted by Robert Craig <rds at MSN.COM> Jul 14, 1997
- 682 views
- Last edited Jul 15, 1997
Matt writes: > I have the need the read the system's date in a 4-digit format. > Euphoria's Date() returns only the last two digit of the year... > Any suggestions? (Please don't tell me to just add "19" in front... :) Euphoria's date() routine returns the year *since 1900* in element 1. You should add 1900 to get the 4-digit year. Don't just stick "19" in front or you'll have problems in the year 2000. -- correct way of printing 4-digit year: sequence s s = date() ?s[1] + 1900 I set my system date temporarily to 2005, and date() returned 105 in element 1. 105 + 1900 = 2005, which is correct. Regards, Rob Craig Rapid Deployment Software