For date and time values, value-list can have the following forms:
“SAS-value”i TO “SAS-value”i <BY interval>
is any SAS date, time, or datetime value described for the SAS functions INTCK and INTNX. Enclose the value in quotation marks and specify one of the following for i:
is one of the valid arguments for the INTCK or INTNX functions. These are the default intervals:
default interval for date
default interval for time
default interval for datetime
These value lists use SAS date and time values:
order=("25MAY11"d "04JUL11"d "07SEP11"d) order=("01JUL10"d to "01AUG10"d) order=("01JUL11"d to "01JAN11"d by week) order=("9:25"t to "11:25"t by minute) order=("04JUN11:12:00:00"dt to "10JUN11:12:00:00"dt by dtday)
You mention that you're wanting to use Gchart (for bar charts, I assume?)
One important thing to know is that you'll probably want to use the 'discrete' option, so that each of the date (or time) values in your data becomes a discrete bar in your bar chart ... otherwise Gchart will probably treat them as numeric (which is what they are) and group & split them into a histogram.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.