Syntax
dbase / Foxpro for BETWEEN (and works with any of the same data types)
BETWEEN( SomeValue, MinRange, MaxRange )
so that your request can be executed as
where between( [RDATE], ctod( '02/16/2006' ), ctod( '02/20/2006' ))
in old DBase and VFP forward, CTOD () means converting characters to a date and expects it in the format mm / dd / yyyy. Performing only the βdateβ part, this always implies 12:00:00.
Alternatively, you can use a DATE () function such as date (yyyy, mm, dd) as the date (2006, 02, 16), which will also return that specific date.
If you need a specific time, you can use CTOT (), which represents the Character TO dateTime field, for example
CTOT( "2012-09-20T15:16:21" ) = Sep 20, 2012 @ 3:16:21pm
DRapp source share