Dear all, maybe I am simply do not see the crucial point but I have a small problem. In a form the users can enter some dates via
<mx:DateField id="compBop" dateFormatter="formatDate" /> The corresponding formatDate() looks like this one: function formatDate(date:Date):String { return (date.getUTCDate() + 1) + "-" + ( date.getUTCMonth() + 1 ) + "-" + date.getUTCFullYear(); } This works quite good, but I want have a leading 0 if the Day or the month conists of only on digit, e.g. 02 instead of 2 for february. I searched all the variants of date.UTC....() but did not saw an option for this. I assume there is one because you can have the year displayes with 4 or 2 digits... Maybe some is so helpful and can provide me with the proper function call or a workaround if there is no such a call. Thanks in advance and best regards Reto ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hi3apt8/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1122891737/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> -- 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/