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

Code Example 1

-- If you just need to insert the current DateTime: --
INSERT INTO yourtable (`DateTimeFieldName`) VALUES (NOW());

Learn ReactJs, React Native from akashmittal.com