How to get day from date in SQL?

Ads
 

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

Ads









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
Java Get Method
how to get current date without system date
How to get the current date in Java?
How to get max date in Hibernate?
Day for the given Date in Java
Get first day of week
Get Last Day of The Month
get data between date from msaccess database
Java Get Month from Date
JSP:How to get year of system date - Date Calendar
Java get Next Day
PHP Date add 1 day
Get date data type from table
Java date add day
How to save and get value from JSP
Java get year from date
How can we get second of the current time using date function?
Current Date iPhone SDK
How to get hibernate configuration from sessionfactory?
java how to get domain name from url
Java subtract days from date
Java subtract months from date
Java subtract years from date

Ads