Check out example codes for "cast string to datetime mysql". It will help you in understanding the concepts better.

Code Example 1

SELECT STR_TO_DATE('2017-03-13T14:39:01.123','%Y-%m-%dT%H:%i:%s.%f');

Learn ReactJs, React Native from akashmittal.com