|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to set date (and/or time) format
i need select values stored in timestamp field in some given format. is it possible to set this format by some sql command ? i know that it is possible to use some api function but this is not usable for me. thnx
|
|
#2
|
|||
|
|||
|
Actually, the "format" is a display thing only...
If you need it formatted on the GUI side, do it when displaying the date/time. With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server Upscene Productions http://www.upscene.com
__________________
Martijn Tonies Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle Upscene Productions http://www.upscene.com |
|
#3
|
|||
|
|||
|
Quote:
thnx, i know that. i am lazy to format value on client. i wanted to set it globally. in php it is possible to do this by some function (but i think it uses client api). in oracle it is possible by this sql statement: alter session set nls..... i don't know if something simillar exists in interbase/firebird. |
|
#4
|
|||
|
|||
|
Quote:
No, Firebird date/time values are no strings of text, but numbers. Formatting (converting the numbers to a human readable format) needs to be done on the client side... |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > how to set date (and/or time) format |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|