I have successfully created the Minimum date and time variable as well as the maximum date and time variable(date datatype). I am only looking 30 seconds in either direction from the record I am querying. My problem is when I try to do an in line substation for the select layer by attribute it will not accept
[Date_stamp] >= %#Min_Query#% it says there was a syntax error. The field I am querying is a date and time field and the variable I am using is a date time variable. Both appear to always have an associated time. I added a picture to show exact formats.
I am using ArcMap 10.6.