This content has been marked as final. Show 5 replies
I totally agree width you , i don't know what were they thinking, i come from .net too and before i realized that on flex i was very lost working width dates.
So my question it if the month field is indexed on 0 (event those day is not, hour is not etc), and since 11 is the max value possible for the month field...
How in the world can I pass a date of December 1, 2007 (which everywhere else in the world would be 12/1/2007 but in flex would be 11/1/2007) to a .Net webservice and receive accurate information?
And I dont think .Net will even respond to a date of January 1, 2007 listed as (0/1/2007)...
It's actually fairly standard to represent the months like that in many languages. C code has:
int tm_mon; /* month of year (0 - 11) */
Perl handles it like that as well. Many languages do. I agree that it seems kind of pointless to continue embracing that standard though. Maybe it buys something that I'm not aware of, but I can't see what that would be. ;)
what i've done is use the dateformat class in flex, is the easiest way to handle dates