Subject | Is this the only way to crete a date string in native FB? |
---|---|
Author | Bhavbhuti Nathwani |
Post date | 2009-06-09T18:14:01Z |
Hi all
I am using the following (partial) code to get a string of a date from a datetime field:
' dtd. ' || CAST (EXTRACT(DAY from tPS.tDt) AS CHAR(2)) || '/' || CAST (EXTRACT(MONTH from tPS.tDt) AS CHAR(2)) || '/' || CAST (EXTRACT(YEAR from tPS.tDt) AS CHAR(4))
Is there a better way to do this?
Thanks and regards
Bhavbhuti
I am using the following (partial) code to get a string of a date from a datetime field:
' dtd. ' || CAST (EXTRACT(DAY from tPS.tDt) AS CHAR(2)) || '/' || CAST (EXTRACT(MONTH from tPS.tDt) AS CHAR(2)) || '/' || CAST (EXTRACT(YEAR from tPS.tDt) AS CHAR(4))
Is there a better way to do this?
Thanks and regards
Bhavbhuti