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

About Format-datetime()



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