Skip to toolbar

Forum

Find the day name o...
 
Notifications
Clear all

Find the day name of 2021 new year day from sysdate?  


vinodkrsetty
Posts: 15
Admin
(@vinodkrsetty)
Member
Joined: 1 year ago

how to Find the day name of 2021 new year day from sysdate?

2 Replies
Gangadhar Rao
Posts: 42
 Gangadhar Rao
Guest
(@Gangadhar Rao)
Joined: 4 months ago

Hi you can use the DAY NAME function to get the day name of the new year 2021

Query: 

SELECT DAYNAME("2021-01-01 12:01:01");

You will get the output as Friday. 

Reply
Mahesh Karpe
Posts: 1
 Mahesh Karpe
Guest
(@Mahesh Karpe)
Joined: 2 months ago

Select to_char(to_date('01-01-2020','DD-MM-YYYY'),'DAY') AS DAY from dual;

Reply

Leave a reply

Author Name

Author Email

Title *

Maximum allowed file size is 10MB

 
Preview 0 Revisions Saved
Share: