I have a field with dd-mm-yy hh:mm:ss tt
I want to select only the name of the day
I tried datepart() and day()
both gave me 1 to 31.
What I want is Monday, Tuesday and so on..
How to achieve that?
SELECT DATEPART(WEEKDAY, GETDATE())
or
SELECT DATENAME(WEEKDAY, GETDATE())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With