Date tab Syntax Buttons
The Date tab syntax buttons indicate all the ways you can add or use a Date in an expression. Clicking on one of the buttons adds the indicated syntax (minus the question marks) to your expression. In the spaces left by the question marks, enter the appropriate values.
Note | The Date syntax specified by the Date tab syntax buttons is specific to Cisco Unified CCX. |
Syntax Button |
Description |
---|---|
D[???] |
Enters the date. You can specify a date in many different formats. See Date Literals for the different formats you can use. Examples:
|
D[now] |
Returns the current date and time at run-time. This is the date and time when the expression is evaluated and not when the expression is entered in the Cisco Unified CCX Editor. Returns the current date in the format Month Day, Year HH:MM:SS AM|PM. For example: D[July 5, 2005 3:34:42 PM]. |
?.year |
Returns the current year of the date object as an int number. For example: 2005 |
?.month |
Returns a number representing the month that contains or begins with the instant in time represented by this Date object. The value returned is between 1 and 12, with the value 1 representing January. |
?.woy |
Returns the week of the year of the date object. The range is 1 - 52. |
?.wom |
Returns the week of the month of the date object. The range is 1 - 5. |
?.date |
Returns the current date of the date object. This date is the same as that specified by the .dom syntax. |
?.dom |
Returns the day of the month represented by this Date object. The value returned is between 1 and 31 representing the day of the month that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone. |
?.doy |
Returns the day of a date in a year as a number. The range is from 1 to 366. |
?.dow |
Returns the day of the week represented by this date. The returned value (1 = Sunday, 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday, 7 = Saturday) represents the day of the week that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone. |
?.ampm |
Returns an int number of the date object; AM=0, PM=1 |
?.hour |
Returns the hour represented by this Date object. The returned value is a number (0 through 12) representing the hour within the day that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone. |
?.hod |
Returns the hour represented by this Date object. The returned value is a number (0 through 23) representing the hour within the day that contains or begins with the instant in time represented by this Date object, as interpreted in the local time zone. |
?.min |
Returns the number of minutes past the hour represented by this date, as interpreted in the local time zone. The value returned is between 0 and 59. |
?.sec |
Returns the number of seconds past the minute represented by this date. The value returned is between 0 and 59. |
?.ms |
Returns the number of milliseconds since the second represented by the Date. The range is 0 to 999. |
Note | The .year, .month, .woy, .wom, .date, .dom, .doy, .dow, .ampm, .hour, .hod, .min, .sec, and .ms variables do not require the Java license for expressions that use date. |