Oracle sql convert timestamp into format -


i have timestamp column 'ts'. need convert format:

'dd-mon-yyyy hh24:mi'.

i used complete requirement:

to_char(ts, 'dd-mon-yyyy hh24:mi'). 

the problem returns string. using oracle apex , outputting in table. table allows sorting. when sort sorts column string , not date, sorting not accurate. how can convert timestamp format need while still being timestamp/date field (any type long accurately sort real dates).

@sstan right. there 4 date formats can set @ workspace level, , @ application level: application date format, application date time format, application timestamp format, , application timestamp time zone format. way timestamp stays timestamp , sorts correctly. select application, click on edit application properties button (top rightish), click on globalization button (top leftish), , there can set date formats.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -