Article ID: 183049 - Last Review: August 27, 2007 - Revision: 3.2 FP98: Save Results Form Handler and Four-Digit Year FormatThis article was previously published under Q183049 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 INFORMATIONMicrosoft provides programming examples for illustration only,
without warranty either expressed or implied. This includes, but is not limited
to, the implied warranties of merchantability or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language that is being demonstrated and with the tools that are used to create
and to debug procedures. Microsoft support engineers can help explain the
functionality of a particular procedure, but they will not modify these
examples to provide added functionality or construct procedures to meet your
specific requirements.
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)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 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
