arsdate -a 9/1/99
The
ARSDATE program returns: 9/1/99 -> 10836
To
display the date string for the database value 10836 in the default
date format, enter: arsdate -a 10836
The ARSDATE
program returns: 10836 -> 9/1/99
arsdate -z "09/01/00 04:00:00"
When
run on a server in the Eastern time zone will return: 09/01/00 04:00:00 -> 936187200
If
you run the same command on a server in the Mountain time zone, then
result will be: 09/01/00 04:00:00 -> 936180000
A
typical use of the -z parameter is to determine
a database value with which to search the system log. You can use
the result to search the Date/Time (TZ) (old style) field of the system
log with an SQL string. For example, suppose a user in New York logs
on to a server in Denver. To retrieve the log on messages with an
SQL string, you must specify the date and time part of the query using
the local time of the client that is running the query. If the user
logged on to the server at 4 a.m. Eastern time, then a query that
is run in Denver must specify 2 a.m. to retrieve the message.Table 1 lists the standard date and time formats that are supported by Content Manager OnDemand. If the input data contains a date or time format that is not listed in the table, you can specify the format to Content Manager OnDemand. However, when specifying a format, you can only use values and separators from the standard formats that are listed in the table. Date and time formats may also be specified on the Load Information page in the application and the Field Information page in the folder.
The format consists of a set of values (for example, %m) and separators (such as the slash, dash, colon, or dot characters). A specification for a date format that uses any of these three chars (/ - .) can be used interchangeably; the program allows any of the three, regardless of which one you specified in the date format. A specification for a time format that uses either of these two chars (: .) can be used interchangeably; the program allows either of the two, regardless of which one you specified in the time format.
Date Format Specifier | Date Format | Example |
---|---|---|
%m/%d/%y | mm/dd/yy | 01/31/17 |
%d/%m/%y | dd/mm/yy | 31/01/17 |
%f/%e/%y | m/d/yy | 1/31/17 |
%e/%f/%y | d/m/yy | 31/1/17 |
%y.%m.%d | yy.mm.dd | 17.01.31 |
%m.%d.%Y | mm.dd.yyyy | 01.31.2017 |
%m-%d-%y | mm-dd-yy | 01-31-17 |
%d-%m-%y | dd-mm-yy | 31-01-17 |
%m%d%y | mmddyy | 013117 |
%m%d%Y | mmddyyyy | 01312017 |
%y%m%d | yymmdd | 170131 |
%Y%m%d | yyyymmdd | 20170131 |
%b %e, %Y | Mth d, yyyy | Jan 31, 2017 |
%B %e, %Y | Month d, yyyy | January 31, 2017 |
%m/%d/%y %H:%M | mm/dd/yy hh:mm | 01/31/17 10:50 |
%H:%M | hh:mm | 10:50 |
%T | hh:mm:ss | 10:50:59 |
%H.%M | hh.mm | 10.50 |
%T | hh.mm.ss | 10.50.59 |
arsdate -t 04:00:00
The
ARSDATE program returns: 04:00:00 -> 4800
To
display the time string for the database value 4800, enter: arsdate -t 4800
The
ARSDATE program returns: 4800 -> 04:00:00