RidgeStar
About
Locations
Manual
Reference
Notices
Email
HTML
Internet
Passwords
Processes
Results Lists
RidgeStar
Tools
Acrobat Reader
Comparators
Compute Age
Date Differences
Dates and Times
Editing Email
Fragment Fields
IP Mapping
Phone Numbers
Key Search
Show Characters
Similar
Text Format
Service
Logon
RidgeStar

Reference: Tools-Dates and Times

Logonfindtranslate
Get Started |Calendar |Locations

The processing of Dates and Times from data entry forms, in machine readable files, and at other times, as necessary, can be an imprecise activity. This is the result of different portions of the world using different "standards" and, indeed, individuals having specific preferences over style. Of course, RidgeStar Sites are, by their very nature, computer systems that cannot be imprecise and must have a standard and identifiable way to handle Dates and Times.

The following form permits you to enter a date and/or time value and watch how the RidgeStar routines would process it. The processing used to produce the results are documented at the bottom of this page:

Date and Time Formatting
Input
Display Date
Display Time
Display Date and Time12/31/1969 4:00 pm
Internal Date1969-12-31
Internal Time00:00:00
Internal Date and Time1969-12-31 16:00:00
PHP StrToTime
Day of Week3 - Wednesday
Action

The form of an input area containing a date and/or time (where mm=month, dd=day, yyyy=year, hh=hour, mm=minute, ss=second) is:

M/D/Y format: [mm[/dd[/yyyy]]] [[hh[:mm[:ss]]]]

or

Y-M-D format: [yyyy-[mm[-dd]]] [[hh[:mm[:ss]]]]

  • Leading zeroes are optional in any of the elements (mm, dd, yy, hh, mm, or ss)
  • the presence of a dash in the input field indicates Y-M-D format, otherwise the assumption is M/D/Y format
  • If unspecified, the Month, Day, and Year will default to the current Month, Day, or Year
  • if the Year is less than four digits, 2000 is added to the YYY value to produce a fully formed Year. Sites with Feature=OptionSettings operational can specify Setting=CenturyYear to change this logic. Set the CenturyYear to the numeric value that is the cutoff in the current century between the prior Century and the current Century.

Note: The logic and acceptable formats underlying the RidgeStar Time and Date parsing routines is described in the GNU Date Input Formats-> syntax or at the PHP site-> description for Relative Formats..