Months are 0-based in ecmascript (JS, AS, etc.) Date objects. 0 = jan., 1 = feb., etc. http://livedocs.adobe.com/flex/3/langref/Date.html#month
Use a date formatter if you need to format this to a string and don't want to manually convert the month offset. (probably a good idea to use the date formatter anyway when you're dealing with locales.) On Mon, Mar 16, 2009 at 2:01 PM, Greg Morphis <[email protected]> wrote: > I feel like I hacked it but I added a .sethours(12,0,0,0) > at the top of the code before it saves dispatches the event.. > Is there a less hacky-feeling fix for this? this works fine but leaves > a bad taste in my mouth > > > On Mon, Mar 16, 2009 at 2:51 PM, Greg Morphis > <[email protected]<gmorphis%40gmail.com>> > wrote: > > out of the pan and into the fire.... > > > > I have a datefield and I choose for example April 1, the date saves as > 3/31. > > If I choose 3/31, it saves 3/30.. > > Is this a timezone issue with Flex? is this easy to fix? > > When I Alert the value I see > > Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) > > So why isnt it staying on March 31st? > > > > Thanks! > > > > -- Beau D. Scott Software Engineer

