Date format

Hi,

I have to convert a text value to date in Lotus Script. The text value is “yyyymmdd” format, but I don´t know what is the user´s date format (yyyy.mm.dd or dd/mm/yyyy or mm/dd/yyyy etc.) How can I get user´s date format? How can I convert the text correct date?

Attila

Subject: Date format

You don’t need to know the user’s date preferences. If you know the string format, you can pull the string apart into Year, Month and Day. Both the Formula Language @Date and the LotusScript DateNumber support ORDERED number-to-date conversions (see Designer Help). Once the value is a real, genuine date, it will display in whatever format the user wants. (Well, unless you set a custom format on the field or data column.)

Subject: RE: Date format

Thanks, the DateNumber works in LS.