Deal with two-digit-year value : TO_DAYS : Date Time Functions MySQL TUTORIALS


MySQL TUTORIALS » Date Time Functions » TO_DAYS »

 

Deal with two-digit-year value


mysql>
mysql> SELECT TO_DAYS('1997-10-07'), TO_DAYS('97-10-07');
+-----------------------+---------------------+
| TO_DAYS('1997-10-07') | TO_DAYS('97-10-07') |
+-----------------------+---------------------+
|                729669 |              729669 |
+-----------------------+---------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Date Time Functions
» TO_DAYS