I am running some queries to track the problem with our backup logs and would like to display datetime fields in 24 hour wartime. Is there an easy way to do this? I tried searching on the Internet and could not find anything.
select to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') from dual;
Give time in 24 hour format.
Additional options are described here .
If you want all requests in your session to display full datetime, do
alter session set NLS_DATE_FORMAT='DD/MM/YYYY HH24:MI:SS'
at the beginning of the session.
Use to_char(field,'YYYYMMDD HH24MISS') .
to_char(field,'YYYYMMDD HH24MISS')
A good list of date formats is available here.
This is not the oracle that defines the display of dates; it is a tool that you use to run queries. What do you use to show results? Then we can hope for the correct settings.
Source: https://habr.com/ru/post/1276936/More articles:Synchronizing SourceSafe with SVN - version-controlSort dict on __iter__ - optimizationExplain plan cost and lead time - optimizationHow to work with quarters (quarterly dates) in ASP.Net using VB.Net 2.0? - dateCSS (Stylesheet) organization and colors - cssFinding out the right language for the job: forking with C # - programming-languages | fooobar.comOracle Natural Joins and Count (1) - oracleWhy do I get communication errors when calling a function in Math.h? - gccDisplaying a window on a login screen using C # in Windows XP - c #What is the best way to determine the name of your computer in a .NET application? - .netAll Articles