Subject | Re: [firebird-support] Converting from TIMESTAMP to CHAR |
---|---|
Author | Thomas Steinmaurer |
Post date | 2005-11-16T18:12:45Z |
> Hello, I have a TIMESTAMP field and sometimes I needIn a dialect 3 database:
> only the date portion, to solve this, in SQL Server I
> use this query:
> SELECT CONVERT(nvarchar(8), FIELD_DATE, 112) AS
> TEXT_DATE
> FROM TABLE_NAME
>
> Is there an equivalent CONVERT() function?
> Is there a way to obtain only the date portion without
> converting it to text?
CAST(YOURTIMESTAMP AS DATE) ...
--
Best Regards,
Thomas Steinmaurer
LogManager Series - Logging/Auditing Suites supporting
InterBase, Firebird, Advantage Database, MS SQL Server and
NexusDB V2
Upscene Productions
http://www.upscene.com