Check out example codes for "mysql insert date". It will help you in understanding the concepts better.

Code Example 1

INSERT INTO custorder 
  VALUES ('Kevin', 'yes' , STR_TO_DATE('1-01-2012', '%d-%m-%Y') ) ;
                        ^                                     ^
---parenthesis removed--|                and added here ------|

Learn ReactJs, React Native from akashmittal.com