Check out example codes for "how to select only a certain date sql". It will help you in understanding the concepts better.

Code Example 1

SELECT * 
FROM sales 
WHERE salesDate BETWEEN '11/11/2010 00:00:00.00' AND '11/11/2010 23:59:59.999'

Learn ReactJs, React Native from akashmittal.com