Date Format Issue

Hi,

We have Lotus Domino R5.0.12 running on Windows 2000 Advance Server. This server was of a lower hardware configuration so we have installed Domino R5.0.12 on the new hardware (With windows 2003 enterprise edition) and replaced the data folder and notes.ini from old server to new server.

We started domino on the new server. Now the new server is running Domino R 5.0.12 with windows 2003 enterprise edition. We tested all the application without any problems. The date format at the OS level, Domino console and application is fine i.e. DD/MM/YYYY. (We are using @Created function to display date)

Now I upgraded my R5 server to R6.5.3FP1. When I bring up the server I find the date displayed as follows:-

OS Date: DD/MM/YYYY

Domino Console Date: DD/MM/YYYY

Application Date: MM/DD/YYYY

If it was an OS issue, the problem should come up with R5 also.

I suspect it to be an upgradation issue.

Pls help me to resolve this issue as we have many application where the validation is through date. Some application validate the time from the @Created fuction (which by default refers system date) to make sure its a future date, but because of the date format mismatch the validation fails.

Note: we are not using any notes.ini parameter (Like SetOrder=DMY) for date or time.

Thanks in Advance.

Sufiyan.

Subject: Date Format Issue

In nd6 applications, the default presentation of dates is based on each user’s client platform preferences (even for web users). Developers may override this default presentation of dates by altering the individual view column properties and date fields on forms.

Subject: Date Format Issue

Hi,

I had a similar problem when I upgraded my OS to windows 2003 server. It was about the decimal separator, a regional settings option.

To solve it, I agree with Bill Fox, you can modify the registry. Another solution consist in checking an advanced option in Regional and Language Options / Advanced window > Apply all settings to the current user and to the default user profile.

Hope it helps.

Regards.

Subject: Date Format Issue

As you have changed operating systems you might find that the problem is in the international date settings in windows. When Domino is run as a service it uses the servers settings to formate the date, when the client runs it uses the client settings. Here is a piece from our FAQ at http://www.wfs.com

Frequently when installing the Server software (NT, Win200x) the default US date format is accepted, then the regional settings are changed to localized date format. This change does NOT change the default settings which the Domino Server uses when it runs as a service. So that a scheduled agent on the Domino Server will us one date format while the Regional settings are using another. This will result in dates being displayed incorrectly, or as an error. In addition the time limited demo may expire before expected or not run at all.

The solution is to edit the Windows Registry so that the System Default Settings conform to the date standard that you are using.

When Domino runs as a service it uses the settings in HKEY_USERS.DEFAULT\Control Panel\International to get its date format. Below is a bit of an explanation of the Registry, including an example of the settings for a German HKEY_USERS server.

Please look at these settings on your server and make sure that they are set correctly for your server’s country and date format. The main items to look for are:

Variable Setting

iDate “0” = MM/DD/YY

"1" = DD/MM/YY

"2" = YY/MM/DD

sLongDate set to appropriate format eg MM dd yy

sShortDate MM/dd/yy

Please note that editing the Windows Registry must be done carefully and we do not take responsibility for any changes that you make. The server will need to be shut down and restarted after the Registry is changed.

Locale Settings on Operating System Level

For Windows make sure the Regional Settings are properly set.

By default Notes Server runs with system account

Make sure HKEY_USERS.DEFAULT\Control Panel\International

On UNIX set LOCAL and TZ environment variable.

Lotus Notes/Domino uses those settings for

  • presenting text

  • presenting date and time

  • sorting

This affects Servers and Clients

Windows System Account for running the Server

It is recommended to run the Domino Server with the system account!

make sure Windows System Account has the right Regional Settings.

check HKEY_USERS.DEFAULT\Control Panel\International

the easiest way is to export settings from the actual user and modify the registry key before importing back.

The following is an example of the registry settings for a German server.

Windows Registry Editor Version 5.00

[HKEY_USERS.DEFAULT\Control Panel\International]

“iCountry”=“49”

“iCurrDigits”=“2”

“iCurrency”=“3”

“iDate”=“1”

“iDigits”=“2”

“iLZero”=“1”

“iMeasure”=“0”

“iNegCurr”=“8”

“iTime”=“1”

“iTLZero”=“1”

“Locale”=“00000407”

“s1159”=“”

“s2359”=“”

“sCountry”=“Germany”

“sCurrency”=“DM”

“sDate”=“.”

“sDecimal”=“,”

“sLanguage”=“DEU”

“sList”=“;”

“sLongDate”=“dddd, d. MMMM yyyy”

“sShortDate”=“dd.MM.yyyy”

“sThousand”=“.”

“sTime”=“:”

“sTimeFormat”=“HH:mm:ss”

“iTimePrefix”=“0”

“sMonDecimalSep”=“,”

“sMonThousandSep”=“.”

“iNegNumber”=“1”

“sNativeDigits”=“0123456789”

“NumShape”=“1”

“iCalendarType”=“1”

“iFirstDayOfWeek”=“0”

“iFirstWeekOfYear”=“2”

“sGrouping”=“3;0”

“sMonGrouping”=“3;0”

“sPositiveSign”=“”

“sNegativeSign”=“-”

Subject: RE: Date Format Issue

Hi,

I have modified the registry as per the following URL to change the date format to DD?MM/YYYY:-

http://www-1.ibm.com/support/docview.wss?rs=463&context=SSKTMJ&context=SSKTWP&q1=1141275&uid=swg21141275&loc=en_US&cs=utf-8&lang=en

After doing this changes I have rebooted my server but the problem still persist.

I am not sure if this is a Server/Application/OS issue.

Regards,

Sufiyan…

Subject: RE: Date Format Issue

Solution:

In the server document we need to set the “Default regional locale” in the “Domino Web Engine” to “Server Locale”? Otherwise it is presented with the users preferred format in the web browser.