Subject | Re: [ib-support] get system date complete |
---|---|
Author | Ivan Prenosil |
Post date | 2002-06-03T09:16:58Z |
> how can I get system date complete (yyyy-mm-dd hh:mm:ss) in Firebird useBut you got the _date_ complete :-)
> SQL? i have used CAST ('TODAY' AS TIMESTAMP), but the value of time is
> zero..
> example : 2002-05-31 00:00:00
'TODAY' has always zero time portion, you probably want to use 'NOW' instead,
or better yet CURRENT_TIMESTAMP (which is of type TIMESTAMP, so you do not need
to cast it).
Ivan
http://www.volny.cz/iprenosil/interbase