Re: [Info-ingres] [Rookie] Problem with date - 03-27-2006 , 04:27 AM
You need to look at the settings of the environment variable
II_DATE_FORMAT. This is documented in the SQL reference guide.
There is a table of the various permitted input formats, and output
The default date format is 'US', but you may set alternatives as follows.
At an installation wide level using ingsetenv. You can display the
current installation setting with ingprenv II_DATE_FORMAT.
You can also set the environment variable for a specific job or session.
This 'local' setting would then override the installation setting - for the
lifetime of the session/job or until this local setting is altered or cleared.
In your case, you could use:
setenv II_DATE_FORMAT DMY
select date('27-03-2006 10:22:01');\g
The system will respond with a date in DMY 'output' format of:
Re: [Info-ingres] [Rookie] Problem with date - 03-27-2006 , 05:46 AM
This is it. Thans a lot. I own you pretty big beer .
<martin.bowes (AT) ctsu (DOT) ox.ac.uk> wrote