RE: [flexcoders] parseDateString bug ???

2005-07-04 Thread Shlomi Cohen





Hi

thanks 
for the reply , 
yes i 
know it static , i just tried to change the format it uses to parse , ( thats 
whyi wrote the formatString line)

in 
your example how can you tell if the month is July or May ?

thanks

Shlomi



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff 
TapperSent: Monday, July 04, 2005 00:32To: 
'flexcoders@yahoogroups.com'Subject: Re: [flexcoders] parseDateString 
bug ???
parseDateString is a static method. Try this 
instead:Dumper.info("PARSING DATE-" + 
mx.formatters.DateFormatter.parseDateString("07/05/2005 11:00 
AM"));At 01:32 PM 7/3/2005, Shlomi Cohen 
wrote:Hii have the following code 
,mx:DateFormatter id="df" formatString="MM/DD/" 
/Dumper.info("PARSING DATE-" + 
df.parseDateString("07/05/2005 11:00 AM"));the result on 
Dumper screen is [INFO]: PARSING DATE-undefined instead of a valid date 
object.it seems like what ever i do i always get the undefined 
.i also saw http://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.htmlhttp://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.html 
is this related ? cause i managed to get the format from df 
.any ideas how to solve this 
?thanksShlomi__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email__--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com 
? LSpots keywords ? ? HM ADS 
?--YAHOO! GROUPS 
LINKS * Visit your group  
"http://groups.yahoo.com/group/flexcodersflexcoders" 
on the web. * * To 
unsubscribe from this group, send an email to: * 
 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 
 * * Your use 
of Yahoo! Groups is subject to the  http://docs.yahoo.com/info/terms/Yahoo! 
Terms of 
Service.Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
__This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] parseDateString bug ???

2005-07-04 Thread Manish Jethani
On 7/4/05, Shlomi Cohen [EMAIL PROTECTED] wrote:

 yes i know it static , i just tried to change the format it uses to parse ,
 ( thats why i wrote the formatString line)   
   
 in your example how can you tell if the month is July or May ? 

The parseDateString method takes a string and returns a Date object. 
The format string is not taken into account in this method (the format
string is for the format method).  I'm not sure, but I think your
input string needs to be in ISO format [1].

[1]: http://www.w3.org/QA/Tips/iso-date


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] parseDateString bug ???

2005-07-03 Thread Jeff Tapper
parseDateString is a static method.  Try this instead:
Dumper.info(PARSING DATE- + 
mx.formatters.DateFormatter.parseDateString(07/05/2005 11:00 AM));

At 01:32 PM 7/3/2005, Shlomi Cohen wrote:

Hi

i have the following code ,

mx:DateFormatter id=df formatString=MM/DD/ /

Dumper.info(PARSING DATE- + df.parseDateString(07/05/2005 11:00 AM));


the result on Dumper screen is [INFO]: PARSING DATE-undefined instead of a 
valid date object.
it seems like what ever i do i always get the undefined .

i also saw 
http://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.htmlhttp://livedocs.macromedia.com/flex/1/asdocs/mx/formatters/DateFormatter.html
 
is this related ?  cause i managed to get the format from df  .


any ideas how to solve this ?

thanks


Shlomi


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__


--
Flexcoders Mailing List
FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com
 


? LSpots keywords ? ? HM ADS ?

--
YAHOO! GROUPS LINKS

*  Visit your group 
 http://groups.yahoo.com/group/flexcodersflexcoders on the web.
*
*  To unsubscribe from this group, send an email to:
* 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED] 

*
*  Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.


--



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/