There are two tools that are used to populate date fields: a calendar tool to select an exact date, and a relative date picker to select a date that is relative to the current time (now -1 day, for example). In addition, exact or relative dates can be entered manually. See any of the topics above to Enter or Select a date.
Be aware that when selecting or entering dates, the date on the system on which you are running your browser may not be the same as the date on the Guardium appliance to which you are connected.
Cautions need to be taken when including Timestamps in queries.
First, be aware of the distinction between a timestamp (lowercase "t") and a Timestamp (uppercase "T").
A timestamp (lowercase “t”) is a data type containing a combined date-and-time value, which when printed displays in the format yyyy-mm-dd hh:mm:ss (e.g., 2005-07-17 15:40:25). When creating or editing a query, most attributes with a timestamp data type display with a clock icon in the Entity List panel.
A Timestamp (uppercase “T”) is an attribute defined in many entity types. It usually contains the time that the entity was last updated.
Including a Timestamp attribute value in a query will produce a row for every value of the Timestamp. This may produce an excessive amount of output. To get around this, use the count aggregator when including the Timestamp in a query, and then drill down on a report row, to view the individual Timestamp values for the items included in that row only, in a drill-down report.
When displaying a Timestamp value in a query that contains Timestamp attributes in multiple entities, be careful to select the Timestamp attribute from the appropriate entity type for the report. For example, if the query will display information from both the Client/Server and the Session entities, with the Session selected as the main entity, you can display a Timestamp attribute from one or both entities. If you include the Client/Server Timestamp, you will see the same value printed for every Session for a given client-server connection – it will always be the time at which that particular Client/Server was last updated. If you include the Timestamp attribute from the Session, you will see the time that each Session listed was last updated.
Tip: If your report displays times that are all the same when you expect them to be different, you have probably included a Timestamp attribute from an entity too high in the entity hierarchy for the level of detail you want on the report.
To use the Calendar Window to select an exact date:
Click the (Calendar) button beside the field where you want to insert a date. This opens a calendar in a separate window.
Click the left arrow button to display the previous month in the calendar window.
Click the right arrow button to display the next month in the calendar window.
Click on any date to select that day. The calendar window will close and the selected date will be inserted into the date field beside the calendar tool that was clicked.
Note: The default time for a date selected using the calendar is always 00:00:00 (the start of the day). To specify any other time of day, type over this value, entering the desired time in 24-hour format: hh:mm:ss, where hh is the hour of the day (0-23), and mm and ss are minutes and seconds respectively (both 0-59).
Click the field where you want to enter the date and enter the date in yyyy-mm-dd format, where:
yyyy is optional and may be any positive integer value. If omitted, yyyy defaults to the current year. If a one- or two-digit year is entered, the century portion of the date defaults to 19.
mm is the month (1-12)
dd is the day of the month (1 to 28, 29, 30, or 31, depending on the month)
If no time is entered, the time defaults to 00:00:00 (the start of the day). To specify any other time of day, type over this value, entering the desired time in 24-hour format: hh:mm:ss, where hh is the hour of the day (0-23), and mm and ss are minutes and seconds respectively (both 0-59).
Rather than specify an exact date, it is often more convenient to specify dates relative to either the current date (now) or some other date (the first Monday, for example). For example, to always include information from the previous seven days in a query, it’s more convenient to define relative dates (e.g., start = now minus seven days and end = now).The Relative Date Picker tool can be used to select a relative date for many types of tasks.
Click the (Relative Date Picker) button beside any field where a relative date is allowed. This opens the Relative Date Picker window.
Select Now, Start, or End from the list. Regardless of your choice, the display changes to provide for additional selections. The list from which you just made the selection becomes the left-most list of three lists.
From the middle list, select this, last, or previous, which is relative to the unit (day, week, month, or day of the week selected in the next list) as follows:
This is the current unit
Last is the current unit minus one
Previous is current unit minus two
From the right-most list, select day, week, month, or a specific day: Monday-Friday.
Click the Accept button when you are done. The relative date will be inserted into the field beside the Relative Date Picker button that was clicked.
To enter a relative date manually, follow one of the procedures outlined below. Upper or lower case is permitted when entering keywords (NOW or now, for example), and each component must be separated from the next by one or more spaces.
There are three general formats you can use to enter a relative date:
NOW minus a specified number of minutes, hours, days, weeks, or months
OR
The Start or End of the current, last or previous day, week, or month
OR
The Past or Previous day of the week (Sunday, Monday, Tuesday, etc.)
Click in the field where you want to enter the relative date.
Enter the keyword NOW.
Enter a negative integer specifying the relative number of hours, days, weeks, or months (no space is allowed between the minus sign and the integer).
Enter a keyword for the units used: HOUR, DAY, WEEK, or MONTH. Be aware that the plural (hours, days, etc.) is not allowed.
Example: now -14 day
Click in the field where you want to enter the relative date.
Enter the keywords START OF or END OF.
Enter THIS or LAST, followed by DAY, WEEK, or MONTH.
Example: end of last week
Click in the field where you want to enter the relative date.
Enter the keywords START OF or END OF.
Enter LAST or PREVIOUS, followed by SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, or SATURDAY.
Example: start of previous Tuesday