1 select * from test
2 where date between '03/19/2014' and '03/19/2014 23:59:59'
1DATE - format YYYY-MM-DD
2DATETIME - format: YYYY-MM-DD HH:MI:SS
3TIMESTAMP - format: YYYY-MM-DD HH:MI:SS
4YEAR - format YYYY or YY
1ADDDATE Add a date interval (eg: 10 DAY) to a date (eg: 20/01/20) and return
2the result (eg: 20/01/30).
3ADDTIME Add a time interval (eg: 02:00) to a time or datetime (05:00) and
4return the result (07:00).
5CURDATE Get the current date.
6CURRENT_DATE Same as CURDATE.
7CURRENT_TIME Get the current time.
8CURRENT_
9TIMESTAMP Get the current date and time.
10CURTIME Same as CURRENT_TIME.
11DATE Extracts the date from a datetime expression.
12DATEDIFF Returns the number of days between the 2 given dates.
13DATE_ADD Same as ADDDATE.
14DATE_FORMAT Formats the date to the given pattern.
15DATE_SUB Subtract a date interval (eg: 10 DAY) to a date (eg: 20/01/20) and
16return the result (eg: 20/01/10).
17DAY Returns the day for the given date.
18DAYNAME Returns the weekday name for the given date.
19DAYOFWEEK Returns the index for the weekday for the given date.
20DAYOFYEAR Returns the day of the year for the given date.
21EXTRACT Extract from the date the given part (eg MONTH for 20/01/20 = 01).
22FROM DAYS Return the date from the given numeric date value.
23HOUR Return the hour from the given date.
24LAST DAY Get the last day of the month for the given date.
25LOCALTIME Gets the current local date and time.
26LOCALTIMESTAMP Same as LOCALTIME.
27MAKEDATE Creates a date and returns it, based on the given year and number of
28days values.
29MAKETIME Creates a time and returns it, based on the given hour, minute and
30second values.
31MICROSECOND Returns the microsecond of a given time or datetime.
32MINUTE Returns the minute of the given time or datetime.
33MONTH Returns the month of the given date.
34MONTHNAME Returns the name of the month of the given date.
35NOW Same as LOCALTIME.
36PERIOD_ADD Adds the given number of months to the given period.
37PERIOD_DIFF Returns the difference between 2 given periods.
38QUARTER Returns the year quarter for the given date.
39SECOND Returns the second of a given time or datetime.
40SEC_TO_TIME Returns a time based on the given seconds.
41STR_TO_DATE Creates a date and returns it based on the given string and format.
42SUBDATE Same as DATE_SUB.
43SUBTIME Subtracts a time interval (eg: 02:00) to a time or datetime (05:00)
44and return the result (03:00).
45SYSDATE Same as LOCALTIME.
46TIME Returns the time from a given time or datetime.
47TIME_FORMAT Returns the given time in the given format
48TIME_TO_SEC Converts and returns a time into seconds.
49TIMEDIFF Returns the difference between 2 given time/datetime expressions.
50TIMESTAMP Returns the datetime value of the given date or datetime.
51TO_DAYS Returns the total number of days that have passed from ‘00-00-
520000’ to the given date.
53WEEK Returns the week number for the given date.
54WEEKDAY Returns the weekday number for the given date.
55WEEKOFYEAR Returns the week number for the given date.
56YEAR Returns the year from the given date.
57YEARWEEK Returns the year and week number for the given date.