Check out example codes for "how to update date value in sql". It will help you in understanding the concepts better.

Code Example 1

UPDATE TABLE
   SET EndDate = CAST('2009-05-25' AS DATETIME)
 WHERE Id = 1

Learn ReactJs, React Native from akashmittal.com