Hi All,
I have a query that should return records according to selected duration. I did it but it return strange records.
my function :
protected function button1_clickHandler(event:MouseEvent):void
{
datetimeFormatter.dateTimePattern="yyyy-MM-dd HH:mm:ss";
var strFromDate:String=datetimeFormatter.format(dfFrom.selectedDate);
var strToDate:String=datetimeFormatter.format(dfTo.selectedDate);
getIncidentsParam.where="Inc_AlarmTime > date '"+strFromDate+"' AND Inc_AlarmTime < date '"+strToDate+"'";
getIncidents.execute(getIncidentsParam);
}
I read the date from datefield.
The returned records sometimes before the duration like attached snapshot[ATTACH=CONFIG]13276[/ATTACH]
Is there solution for this problem.
Thanks
Yusuf