Question Capturing datas between two dates

Thara

New member
Joined
May 25, 2017
Messages
1
Programming Experience
1-3
Plz help me to write the query to get the datas between two fields textbox1 & textbox2
Textbox1 is May 2016 and Textbox2 is May 2017
 
You'll want to create a routine that can parse the text from things like "May" into the integer 5 and of course the year as a 4 digit integer, then you can create a DateTime object using a 1 as the day and leaving the time part all 0's.
Then you can subtract the two to get a timespan and go from there for whatever you need the date range for.
 
Back
Top