Hi,
I am running some queries against an informix (2000?) database (from DTS via ODBC) that includes a DATE field in one of the tables.
I am not an informix expert, therefore, am I correct in thinking that when I query an Informix table, Informix only recognises dates in the format of mm/dd/yyyy or mm-dd-yyyy ?
e.g. there is not a differentiation between different locales? so no difference in US date format versus UK date format?
For example, if i wanted to extract some data for the date of 6th March 2006 I would do :
select *
from myTable
WHERE ROW_DATE = '03-06-2006' -- '06-03-2006' fails ?
Does this assumption hold true?
I noticed there was an informix function called MDY, so I thought it seemed strange that formats other than mm-dd-yyyy would be allowed.
Any help appreciated,
MrPeds
I am running some queries against an informix (2000?) database (from DTS via ODBC) that includes a DATE field in one of the tables.
I am not an informix expert, therefore, am I correct in thinking that when I query an Informix table, Informix only recognises dates in the format of mm/dd/yyyy or mm-dd-yyyy ?
e.g. there is not a differentiation between different locales? so no difference in US date format versus UK date format?
For example, if i wanted to extract some data for the date of 6th March 2006 I would do :
select *
from myTable
WHERE ROW_DATE = '03-06-2006' -- '06-03-2006' fails ?
Does this assumption hold true?
I noticed there was an informix function called MDY, so I thought it seemed strange that formats other than mm-dd-yyyy would be allowed.
Any help appreciated,
MrPeds