[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: About Format-datetime()



To switch to 4 digit years, there are some settings to change in
SETENV.SQC.  I'm not going to go into detail because there are several
things that have to match up properly, so testing is a must, and I'm not
sure of all the settings. Year4, Century, a few others need to be adjusted.
 This is a global change and may effect some of your in-house developed
SQR's, so be careful.

At 12:44 PM 9/24/98 -0400, you wrote:
>Hi,
>
>        Lot of discussion going on dates !!! I've question abt. the way
>Format-datetime() function in Psoft works.
>        I observred that it returns year in just 'YY' format (Not in
>'YYYY') even though u supply $date1 as say '12-sep-1998'. It returns
>'98/11/12'. (Refer to note in datetime.sqc )
>Considering 2000 is approaching pretty soon, I wonder why it's two
>digits ?
>        Work wround is to 'substr' $date1 and store last 4 digits and
>then concat with output of format-datetime().
>        Is this the way it works or I'm missing something ?
>
>
>Thanks in advance,
>Sameer
>