Display System Date Format

Applicable for all versions of Notes.

If you have a date field on the form and requires user to input the correct
format date value, you can create a native field in R5 or put the field in the
layout region in R4 so that it will display a calendar for user to select. But
some users still prefer to enter the value instead of selecting from the
calendar.

To ensure that the user knows what is the correct date format to enter, you can
create a compute for display dateformat field next to the date fields, so as to
display the correct date format based on the system settings on the user's PC.
Value for Compute for Display Dateformat field :
VDate := @Date(1998; 12; 31);
txtDate := @Text(VDate);
dt1 := @Left(txtDate; 2);
dt2 := @Middle(txtDate; 3; 2);
dt3 := @Right(txtDate; 2);
first := @If(dt1 = "12"; "mm"; dt1 = "31"; "dd"; "yyyy");
second := @If(dt2 = "12"; "mm"; dt2 = "31"; "dd"; "yyyy");
third := @If(dt3 = "12"; "mm"; dt3 = "31"; "dd"; "yyyy");
sep := @Middle(txtDate; 2; 1);
"(in " + first + sep + second + sep + third + " format)"
This was first published in November 2000

Dig deeper on Lotus Notes Domino User Settings

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close