Article ID: 214527 - Last Review: August 27, 2007 - Revision: 2.2 FP97: Save Results Form Handler and Four-Digit Year FormatThis article was previously published under Q214527 On This PageSUMMARY
The Save Results Form Handler allows you to specify whether to save Time
or Date information along with each submitted form record. If you save
this Date information, the date will be formatted in M/D/YY format.
However, you can instruct FrontPage to output dates in the M/D/YYYY
format. This article describes two methods you can use to format your dates
in the M/D/YYYY format.
MORE INFORMATION
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN
RISK. Microsoft provides this CODE "as is" without warranty of any kind,
either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
Method 1: Using Active Server Pages (requires IIS or MSPWS)If you are using Microsoft Internet Information Server (IIS) or Microsoft Personal Web Server (with the ASP patch installed), you can use Active Server Pages (ASP) to save the server's date as a part of the Save Results Form Handler. To do this, follow these steps:
174008
(http://support.microsoft.com/kb/174008/EN-US/
)
FP98: What are Active Server Pages?
174015
(http://support.microsoft.com/kb/174015/EN-US/
)
FP98: How to Create Active Server Pages in FrontPage 98
Method 2: Using JavaScript (does not require IIS or MSPWS)If you are not using Microsoft Internet Information Server or Microsoft Personal Web Server, you can use the following client-side JavaScript.NOTE: This script returns the date of the client browser, rather than the date of the server.
REFERENCES
For more information about JavaScript, please see the following Microsoft
World Wide Web site:
http://www.microsoft.com/scripting/jscript
(http://www.microsoft.com/scripting/jscript)
For more information about writing HTML, please see the following Microsoft
Web site:
http://msdn.microsoft.com/library/
(http://msdn.microsoft.com/library/)
| Article Translations
|

Back to the top
