How to get day from date in SQL?

How to get day from date in SQL?

Hi,

How to get day from date in SQL? For your information I am working on the MySQL database.

Thanks

View Answers

July 13, 2016 at 10:32 AM

Hi,

You can use the following queries to get the data:

select date_format(now(),'%e')as day;

select day(now()) as day;

Thanks









Related Tutorials/Questions & Answers:
How to get day from date in SQL?
How to get day from date in Java using Calendar?
Advertisements
How to get the Day name
How to get month name from date(like-25/06/2012) using java?
How to get day of week in Java?
how to get date format in string from date object containing real date in java
how to get date format in string from date object containing real date in java
JDBC : Get year from Date
how to get current date without system date
How to get the current date in Java?
Day for the given Date in Java
How to get max date in Hibernate?
Java Get Method
python add 1 day to date
python add one day to date
python add one day to date
get data between date from msaccess database
Get first day of week
How to get yesterday date in Python?
Get Last Day of The Month
How do I learn Java programming in one day from zero?
How do I learn Java programming in one day from zero?
Get date data type from table
ModuleNotFoundError: No module named 'sqlt'
ModuleNotFoundError: No module named 'sqlu'
ModuleNotFoundError: No module named 'sqlx'
ModuleNotFoundError: No module named 'sqly'
Java Get Month from Date
JSP:How to get year of system date - Date Calendar
ModuleNotFoundError: No module named 'sqlf'
ModuleNotFoundError: No module named 'sqlf'
Java get year from date
PHP Date add 1 day
Java get Next Day
Java date add day
How to save and get value from JSP
How can we get second of the current time using date function?
Current Date iPhone SDK
Java current date - How to get current date in Java
how to get data from checkboxes - JSP-Servlet
Java subtract days from date
Java subtract months from date
Java subtract years from date
How to get hibernate configuration from sessionfactory?
java how to get domain name from url
How to get country locale from a http request
how to get selected name from combo box
how to get selected name from combo box
how to get selected name from combo box
how to get selected name from combo box

Ads