Before I forget, this is for a v6.1.0 system.
I know that I've seen this addressed numerous times before but my friend
Google just cannot seem to locate it based on the input that I've given.
Using SQL, I want to display a value formatted as MM/DD/YY (with the
slash separators) from a date data type column as succinctly as
possible. (This will be the MIN date in the file based on other
criteria in the WHERE clause, but that's superfluous).
The best I can come up with is:
SUBSTR(CHAR(MIN(dayid)),6,2) CONCAT '/' CONCAT
SUBSTR(CHAR(MIN(dayid)),9,2) CONCAT '/' CONCAT
SUBSTR(CHAR(MIN(dayid)),3,2) AS StartDate
Ugly, but it works. There has to be an easier way. I hope someone has
a better idea.
Thanks in advance,