home
search
help
profile
liking the experience? our app is even better
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now  
showing results for mysql str to datetime
1mysql> Select STR_TO_DATE('22.10.2017',GET_FORMAT(DATE,'EUR'))AS 'EUROPEAN FORMAT';
2+-----------------+
3| EUROPEAN FORMAT |
4+-----------------+
5| 2017-10-22      |
6+-----------------+
71 row in set (0.00 sec)
upvote
downvote
source
1mysql> SELECT STR_TO_DATE('18,05,2009','%d,%m,%Y');
2+--------------------------------------+
3| STR_TO_DATE('18,05,2009','%d,%m,%Y') |
4+--------------------------------------+
5| 2009-05-18                           | 
6+--------------------------------------+
71 row in set (0.00 sec)
8
upvote
downvote
source
1SELECT STR_TO_DATE('18,05,2009','%d,%m,%Y');
2
3
upvote
downvote
source
1
2        
3            
4        
5     SELECT STR_TO_DATE('21,5,2013','%d,%m,%Y');
upvote
downvote
source
1mysql> Select * from date_testing1;
2+-------+------------+
3| Name | Date        |
4+-------+------------+
5| Ram   | 2017-05-03 |
6| Shyam | 2003-10-31 |
7+-------+------------+
82 rows in set (0.07 sec)
9
10mysql> Select Name, Date, DATE_FORMAT(date,GET_FORMAT(date,'USA'))AS 'DATE IN US FORMAT'from date_testing1 Where Name='Ram';
11+------+------------+-------------------+
12| Name | Date       | DATE IN US FORMAT |
13+------+------------+-------------------+
14| Ram | 2017-05-03  | 05.03.2017        |
15+------+------------+-------------------+
161 row in set (0.00 sec)
upvote
downvote
source