RE: [flexcoders] Comparing Dates: ObjectUtil.dateCompare not working

2009-11-17 Thread Keith Reinfeld
ObjectUtil.dateCompare() function does account for the time portion of the supplied dates. According to the scenario you describe ObjectUtil.dateCompare() function never sees the time portion of date_A nor date_B. The DateField.stringToDate() method only evaluates the -MM-DD portion of

RE: [flexcoders] Comparing Dates: ObjectUtil.dateCompare not working

2009-11-17 Thread powers
@Keith What would you recommend to use instead of DateField.stringToDate to parse a string into a date object so that it doesn't strip off the time portion? Date.parse does not correctly parse a date when the string is formatted as -MM-DD HH:NN:SS. Keith Reinfeld wrote:

RE: [flexcoders] Comparing Dates: ObjectUtil.dateCompare not working

2009-11-17 Thread Keith Reinfeld
, 2009 1:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Comparing Dates: ObjectUtil.dateCompare not working @Keith What would you recommend to use instead of DateField.stringToDate to parse a string into a date object so that it doesn't strip off the time portion? Date.parse

Re: [flexcoders] Comparing Dates: ObjectUtil.dateCompare not working

2009-11-16 Thread dorkie dork from dorktown
If date_A and date_B are both Date objects then you could compare the time values. This would account for the time and you wouldn't have to use ObjectUtil.dateCompare. http://tinyurl.com/yggtdgh On Mon, Nov 16, 2009 at 2:29 PM, powers vic.pow...@gmail.com wrote: I'm writing a sort compare