Reputation: 3
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
Upvotes: 0
Views: 5442
Reputation: 103
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
Upvotes: 2