Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FP2000: Time Stamp in Database Form Handler Shows Two-Digit Year


View products that this article applies to.

This article was previously published under Q219124

↑ Back to the top


Symptoms

In FrontPage, if your "Save to Database" form includes the time stamp when the form was submitted, the time stamp is stored in two-digit year format.

Although the date appears in a two-digit format by default, the time stamp is still Year 2000 compliant.

↑ Back to the top


Cause

FrontPage Database Results Form Handler uses the Visual Basic Scripting Edition (VBScript) value "Now" to store dates. The formatting of the value is solely dependent on the settings in the operating system that is hosting the page.

If you see the year in a two-digit format, it is because of the configuration of the Regional Settings on your computer.

↑ Back to the top


Resolution

To resolve this issue and see the year in a four-digit format, follow these steps:
  1. On the Windows Start menu, point to Settings, and click Control Panel.
  2. Double-click the Regional Settings icon.
  3. Click the Date tab.
  4. In the Short date style list, select M/d/yyyy and click Apply.
NOTE: When you return to your database, the year appears in a four-digit format.

↑ Back to the top


More information

When you view the time stamp field in your database, if a form was submitted after the year specified in the Regional Settings, the date field shows the four-digit year of the time stamp. The following table displays how various years appear in your database, based on the default regional settings of your computer:


Collapse this tableExpand this table
M/d/yyM/d/yyyy
6/8/816/8/1981
6/8/996/8/1999
6/8/006/8/2000
6/8/20996/8/2099


Note that the year 2099 is written as a four-digit year. This is because the date is beyond the numbers specified in the When a two-digit year is entered, interpret as a year between box on the Date tab (Regional Settings dialog box).

↑ Back to the top


Keywords: KB219124, kbprb, kbnofix

↑ Back to the top

Article Info
Article ID : 219124
Revision : 1
Created on : 10/1/2001
Published on : 10/1/2001
Exists online : False
Views : 268