Tip

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.