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

Code Example 1

SELECT DATE_FORMAT(NOW(),'%Y-%m-%d %H-%i-%s')

Learn ReactJs, React Native from akashmittal.com