× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




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,
Robert

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.