Regional settings

Hi ,

We are using

Dim Date1 As New NotesDateTime (Cstr(doc.pDate2(0)))

Dim date3 As New NotesDateTime (Cstr(doc.date4(0)))

then Doc.DDate = Datevalue(NowTime.dateonly)

and

Doc.Dtime = Timevalue(NowTime.timeonly).

Now problem is that when ,we are running this application in some diffrent regional setting Problem is coms in the date format.

Can some one let me know how i will make this as general so that it works for all the regional setting.?

This is a client based application.

Thanks…

Subject: Regional settings

Your problem is that your are converting datetime values in your document to text before setting up your NotesDateTime object.

Dim Date1 as New NotesDateTime (“”)

Date1.LsLocalTime = Doc.pDate2(0)

should work better, because date times are preserved - which means there is no need to “interpret” the date: its already accurate.

hth

Nicolas Abesdris