Answers Search Help
Boston University home page
Forms: Introduction
 
 
 
 
    HTML Elements
 
 
 
 
 
 
 
    PonyExpress
 
 
 
 
    Form to E-mail
 
 
 
 
    Form to Datafile
 
 
 
 
    Form to Web Page
 
 
 
 
    Also See
   
 

Date and Time Variables

The special field named "timestamp" will be converted into the exact time that the visitor submits your form. You specify the format, using one or more of the following variables. Note that those variables listed with an asterix (*) are zero-padded (e.g 02 instead of 2).

!date 26 November 2009 !time
!miltime
12:26 PM
12:26
!day
!DD
26
26 *
!hour
!hh
12
12 *
!month
!MM
!mon
November
11 *
Nov
!minute
!mm
26
26 *
!year or !YYYY
!YY
2009
09 *
!ss 02 *
!weekday
!shortday
Thursday
Thu
!ampm PM

So, for example, the following code:

<input type="hidden" name="timestamp" value="!time, !date">

produces the following in the output, wherever the timestamp field is included:

12:26 PM , 26 November 2009

 

WebCentral Using Publishing Learning Training Consulting WebCentral
Answers Search Help
NIS  |  OIT  |  Boston University  |   January 9, 2007