Consider
select day("2016-05-22")
and
select dayofmonth("2016-05-22")
both gives the same output.
day("2016-05-22")
22
and
dayofmonth("2016-05-22")
22
Is there any diffrence between these two methods?
According to the MySQL reference manual DAY() is a synonym for DAYOFMONTH()
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