I have a date field within a file geodatabase (10.1).
An example of a value in this field: 19/11/2012 08:49:56
I want to select all rows where the time is between 9pm to 11pm AND 6am to 9am.
I don't care what day, month, year it is. So I want to make use of wildcards to ignore these values.
What would be the correct statement to put in the Select By Attributes to achieve this?
Best Answer
If you date is stored as a date you can use this:
IF your date is stored as a text field you could use this:
It's a little ugly, but you could use this
and just change the numbers to indicate the hours you are interested in.
or this should work:
but as Martin suggested splitting the datetime up and adding a time field might be the best way to go.