Allways getting dateformat dd-mm-yyyy in lotusscript

Hi

i have a datetime field on a form. The value of a field is, for example, 01/02/2008 12:00:00 AM CET.

If I get the value of this field with lotusscript I will get “2-1-08” . But instead I want to get “02-01-2008”.

The lotusscript code I use to get the value is:

doc.call_date(0)

Which lotusscript function/method must I use to allways get a dateformat dd-mm-yyyy?

Regards

Subject: Allways getting dateformat dd-mm-yyyy in lotusscript

Your date / time format is a function of your windows regional settings in the control panel.

If you want your date to display in a different format you need to change that.

Subject: RE: Allways getting dateformat dd-mm-yyyy in lotusscript

Hi

Sorry for not informing you properly.

The lotusscript code is in a background agent that is triggered from the browser. The date/time format is of the domino server. The regional settings of the server is already in format dd-mm-yyyy

Regards

Subject: RE: Allways getting dateformat dd-mm-yyyy in lotusscript

Hi ,

If you wanted to format through lotus script you can simply use format method for example…

test$=format(cdat(field(0)),"dd-mm-yyyy ")

test$=format(cdat(field(0)),"d-m-yy ")

use this string where ever u want. I hope this will help …:slight_smile:

Cheers

RAJ