Syntax graph.DateInputFormat(DateFormatString)
Description Sets the date input format for Time Plot graphs.
The default input format for Time Plot graphs is %m/%d/%Y (month/day/year - e.g. 5/23/2000). This method will override that format for this graph object only.
The base date for PopChart Server is the current date. For example, assume that today is Jan/15/2001 and your date input format is %H:%M. If you provide a date of 5:34, then PopChart Server will treat the full date and time as Jan/15/2001 05h:34m.
The date input format can also be set in the appearance file using PopChart Builder by entering it in the Properties > Graph Properties > General > Date Input Format box.
Parameters Graph.DateInputFormat accepts the following parameters.
Sets the date input format. The string passed to this parameter can consist of text and any combination of macros listed in Table 5.5
%Y | Four-digit year (e.g., 2001) |
---|---|
%y | * Two-digit year (e.g., 01) |
%m | Month of year (1-12) |
%d | Day of month (1-31) |
%H | Hour (0-23) |
%M | Minute (0-59) |
Note: * PopChart is Y2K compliant when using two-digit year values. Values 00 - 69 will be assigned to years 2000 - 2069. Values 70 - 99 will be assigned to years 1970 - 1999.