Date Time Operation in MySql
##Convert Time Zone### ->SELECT CONVERT_TZ('2004-01-01 12:00:00','GMT','MET'); ->SELECT CONVERT_TZ('2004-01-01 12:00:00','+00:00','+10:00'); /////////////////////BESIC FUNTION FOR SYSTEM DATE & TIME/////////////// #Select Now Function ->SELECT now(); #Now Function With SLEEP ->SELECT NOW(), SLEEP(3), NOW(); #SYSDATE WITH SLEEP ->SELECT SYSDATE(), SLEEP(2), SYSDATE(); #Select Current Date ->SELECT CURDATE(); #Select Current Date ->SELECT CURTIME(); #Find Number Of Days Between Two Date ->SELECT DATEDIFF('2007-06-26 23:59:59','2007-04-20'); #Return Day Of Week ->SELECT DAYOFWEEK('2007-02-03'); #Return Day Of Year ->SELECT DAYOFYEAR('2007-02-03'); #Extract Function::::EXTRACT(unit FROM date) ->SELECT EXTRACT(YEAR FROM '2007-06-26'); #Extract YEAR & MONTH ->SELECT EXTRACT(YEAR_MONTH FROM '2001-06-26 01:02:03'); #Extract DAY & MINUTE ->S...