简体   繁体   中英

How can we convert a current date to Julian date /day

How can we format the current date into the Julian date?

And how can we format the current date into HHMMSS format without '.' 'S?

For example:

I should get the format as :123022 not in 12.30.22

you can format the date with the to_char function and an mask.

For example to display HHMMSS use:

select to_char(sysdate, 'HHMISS') from dual;

To see the Julian time use:

select to_char(sysdate, 'J') from dual;

You can see more information about the mask here: to_char function

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM