go back Home

Date

Parameter Values

Date parameter values are parsed using a Pattern determined by the loadmaster.ws.useServerTimezone vmparam value. When the vmparam is set to true, the pattern is yyyyMMddHHmmss and when it is false, the pattern is yyyyMMddHHmmssZ. Currently, this vmparam is set to false.

Omitted parameters evaluate as null.

Letters   Date or Time Component   Example
yyyy Year 2020
MM Month in year 07
dd Day in month 04
HH Hour in day (0-23) 08
mm Minute in hour 05
ss Second in minute 00
Z Time zone (RFC 822) -0500

Response Values

A Date field is formatted using a SimpleDateFormat instance.

XML

This widget has a create_date of August 16, 2016 5:01PM CDT.

<widget id="1" create_date="20160816170100-0500"/>

JSON

This widget has a create_date of August 16, 2016 5:01PM CDT.

{"__type":"widget", "id":"1", "create_date":"20160816170100-0500"}

Request Body Values

Within a request body, services also accept LoadMaster™/PowerBroker™ date shortcut patterns.

Simple addition and subtraction on these values is supported. For example, use t1 for tomorrow and t-7 for one week ago.

Except for n (now), by default shortcut patterns use midnight 0000 for the time component. To specify the time component, include the hours and minutes as two digits each in military time (between 0000 and 2359). For example, to specify tomorrow at 1:30PM, use t1 1330.

See also