How make DateField alway is DD/MM/YYYY ?

Hi all,
     I have used DateField, I want result of date is : DD/MM/YYYY.
     Example:
          I enter 20/10/2010 ---> show : 20/10/2010  --> ok
          I enter 2/10/2010 ---> show : 2/10/2010  --> I want is 02/10/2010 not 2/10/2010.
          I enter 20/1/2010 ---> show : 20/1/2010  --> I want is 20/01/2010 not 20/1/2010.
     I can split this date string to DD/MM/YYYY but DateValidator has support ?
    My code is:
private  function formatDate(date:Date):String { 
return dfconv.format(date);
private 
function show():void{ dateField.formatString = "DD/MM/YYYY";Alert.show(dateField.text);                         ----> must is: "DD/MM/YYYY"
<mx:DateFormatter id="dfconv" formatString="DD/MM/YYYY"/> 
 <mx:DateValidator
source="{dateField}" property="
text" inputFormat="
DD/MM/YYYY"wrongLengthError="
The date format is not correct"allowedFormatChars="
/"trigger="
{checkDate}" triggerEvent="
click"valid="{Alert.show(
'Date is valid')}"invalid="{Alert.show(
'Date is invalid')}"/>
<mx:DateField id="dateField" labelFunction="formatDate"     width="
104" parseFunction="null"     horizontalCenter="
10" verticalCenter="10" editable="true"/>
<mx:Button label="Check Date" id="checkDate" click="show()"/>
Thanks

Hi,
Check the below link
http://blog.flipwork.nl/?entry=entry090117-203618
In that the displayDate() method has your expected functionality.
Regards,
Anitha

Similar Messages

  • Drag/drop import - how to make it always work?

    HI
    Sometimes drag and drop import will work
    (Finder to Project pane, all OSX)
    Sometimes it doesn't, as in sometimes the green plus sign appears, sometimes it doesnee
    This irregularity seems to be when visually dragging and dropping, but also when App switching with Apple Tab, which works less often.
    Is there any logic behind this?
    Is there a way to make it always work?
    Tris
    thankerama

    Ah
    I think it is actually an Apple App switcher thing.
    So if the finder window does noy cover the After Effects Project window, it works, but if you have to use the app switcher, sometimes it works and sometimes it doesn't.
    I don't think it is a file type issue, so much as a live application issue, or maybe GPU related.
    It's a weird thing, not that important, but it does limit where you can and can't drag from.
    Tris

  • How do I always show a Firefox icon when dragging a URL shortcut to the desktop?

    Win 7 Pro 64
    When dragging a URL shortcut to the desktop, I sometimes get the websites favicon regardless if the site has a favicon or not.
    How do I always show a Firefox icon when dragging a URL shortcut to the desktop?
    Thank you

    LIke many others, I had the same problem with v.26. I had a whole slew of URL shortcuts that the icons went to blank white squares. Here is what I did to fix: First I put them all in a folder to make sure there weren't any left on the desktop.
    Next, I opened that folder, went to the first shortcut and double clicked it to open the web page. When it opened, I used the mouse to drag the URL onto the desktop creating a new shortcut. Again the white square icon resulted.
    So I right clicked the shortcut, clicked on "Properties" and under the "Web Document" tab, clicked "Change Icon". A new pop-up window opens that attempts to find a new icon in the windows shell files.
    I instead clicked "Browse" and inserted the directory path to the Firefox program file:
    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    SIX icons were shown, the top left being the familiar white square with the Firefox logo, which I selected, then clicked my way back out on the "OK" buttons.
    NOW, I opened each URL link in the folder, and once opened in a new browser window, dragged the URL's to the desktop and NOW Firefox assigned each one the new correct icon automatically. Once done with all the shortcuts, I deleted the old ones from the folder and the folder itself. End of problem. Now when I save new shortcuts by dragging URL's to the desktop it saves them correctly.

  • I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

    I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
    When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?

    Hi
    How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?
    This is my Input data.
    11/25/2007.
    By using below query, it is inserted into database.
    sql>Insert into tblname values(to_date('11/25/2007','MM/DD/YYYY'));
    But using stored procedure, the same query is not running.
    It shows error like
    ORA-01843: not a valid month ORA-06512: at line 1
    Procedure:
    create or replace procedure Date_Test(datejoin in DATE) is
    begin
    insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    end Date_Test;
    I had used 'nls_date_language = american' also.
    Prcodeure is created but not worked in jsp. The same error is thrown.
    Pls provide a solution

    This might help you....
    SQL> Create Table DateTest(col1 Date);
    Table created.
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    BEGIN Date_Test('11/25/2007'); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    BEGIN Date_Test(To_Date('11/25/2007','mm/dd/yyyy')); END;
    ERROR at line 1:
    ORA-01843: not a valid month
    ORA-06512: at "CTBATCH.DATE_TEST", line 3
    ORA-06512: at line 1
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in DATE) is
    2 begin
    3 insert into datetest values(datejoin);
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> Select * from DateTest;
    COL1
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL> create or replace procedure Date_Test(datejoin in VarChar2) is
    2 begin
    3 insert into datetest values(to_date(datejoin,'mm/dd/yyyy'));
    4 end ;
    5 /
    Procedure created.
    Elapsed: 00:00:00.00
    SQL> exec Date_Test('11/25/2007');
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> select * from DateTest;
    COL1
    25-NOV-07
    25-NOV-07
    Elapsed: 00:00:00.00
    SQL>

  • How do I get Contacts to display yyyy-mm-dd date format?

    How do I get Contacts to display yyyy-mm-dd date format?

    This works in Microsoft Outlook, but not sure if it works in Apple Contacts.
    In System Preferences > Date & Time select Open Language & Region.
    Click on Advanced
    Under the Dates tab you can customize settings.
    You might need to restart your Mac after making the settings.

  • In snow leopard, how make files "invisible"?

    in snow leopard, how make files "invisible"?

    You can make files or folders invisible from the Terminal. Enter the following command:
    chflags hidden
    Don't press enter yet. Put a space after the the word hidden and then drag and drop the item you want to hide into the Terminal window. Now press enter. The item will disappear from view.
    You'd better copy that path down though, because if you want to unhide it, you need to know the full path and file or folder name.
    As a test, I did one as:
    chflags hidden /Users/myaccount/Desktop/test.tif
    This of course is a file named test.tif sitting on the desktop of my user account. Upon hitting enter, it disappeared. To get it back, you unhide it:
    chflags nohidden /Users/myaccount/Desktop/test.tif
    The item will reappear. You can see where it would be very important to have that entire path written down. If you forget the name or where it is, you'll be lucky to find it by guessing. It's either that, or you'll have to use the trick to show hidden and system files. Then you'll be able to see the hidden item you're dragging and dropping item into Terminal to unhide it.

  • How make WAR file on Tomact

    Dear Sir,
    I am using weblogic Application server of BEA. But I am not known use the Apache Tomcat.I have been set the classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar;.
    and path=C:\Program Files\Java\jdk1.5.0_05\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin;.
    Please write me how make the WAR file on tomact.How Its deploy.

    Tomcat is an application server, as is BEA Weblogic, and, as such, does not create WAR files. Instead, you deploy pre-packaged WAR files on the server. For Tomcat, there are a few ways of doing this. You can use the web management console at http://myserver/manager/html if it is enabled on your server. You can also manually copy the WAR file into /path/to/tomcat/webapps, and Tomcat will automagically deploy it.
    Building a WAR file is a little more involved. I strongly suggest using Ant, Maven, or even Eclipse to do it for you. That said, a WAR file is just a JAR file, so you can use the jar command to create it, assuming you have all the right files in all the right directories.
    If you are still having trouble, please try being more specific about what you are trying to do and the error that you get.
    -David

  • How make dynamic site with MUSE

    Howdy, i want ask how make dynamic site with muse, can it intergated with CMS like wordpress, joomla, drupal etc?
    Thanks,
    best regard,
    harles

    Hello Harles,
    The CMS functionality till now is only supported with Muse while using Business Catalyst as host.
    Please refer to forum posts : http://forums.adobe.com/message/4418294?tstart=0 and http://forums.adobe.com/message/4776241#4776241 .
    Hope this helps.
    Regards,
    Sachin

  • How make custom window with flex 3 ?

    Recently version, I was maked custom window by used
    <mx:Application> instead of <mx:WindowedApplication>
    but <mx:Application> script does not work in flex 3
    beta 3 ...
    when I changed WindowedApplication to Application. design
    view was black out ..
    ofcourse, I changed systemchrome and transperate tag in
    app-xml .
    how make custom window ?
    sorry for my poor english ...

    Have you tried changing your root tag to WindowedApplication?
    I think AIR may not support using Application as the root tag. Is
    there a reason you want to avoid WindowedApplication?
    - Peter

  • HT1918 I changed the card and i want to know how make to change the data from itunes. I tried and doesn't work.

    I changed the card and i want to know how make to change the data from itunes. I tried and doesn't work. Please, Help Me!

    No. That's not what I said. You can get an out of warranty replacement, which will be exactly the same model, color, and will be locked in exactly the same way the original is. If you want an iPhone 5, get the 4S replaced, sell it, and use the money to put toward a new phone.

  • How make LOV in JDeveloper 10g by ADF

    How make LOV in JDeveloper 10g by ADF
    please help guys ?

    433592,
    Looks like you've ended up in the wrong Forum.
    This one is for Oracle HTML DB.
    Thanks,
    - Scott -

  • How test the date formats  M/d/yyyy and MM/dd/yyyy .

    how test the date formats M/d/yyyy and MM/dd/yyyy .format should accept 3/3/1982 and 03/03/1982 dates.
    please help me

    georgemc wrote:
    kajbj wrote:
    Spoiler: Reply #3 is actually the answer to your question.Also, Bruce Willis is a ghost, the Titanic sinks and Verbal is Keyzer Soze.Only one of those endings really surprised me.
    You should've heard me in that theatre when the Titanic struck that iceberg...

  • How to restore "Always ignore" selection pressed on Low IL compat / EPM mode question in IE10 on Windows 7 x64?

    How to restore "Always ignore" selection pressed on Low IL compat mode / EPM question in IE10 on Windows 7 x64?
    In a previous question I asked where the Whitelist is and how to modify it but now I have clients that seem to gotten stuck after pressing "Always ignore" and then the question to run outside EPM does not come up anymore and also the Whitelist
    stops working.
    I need to get the "Question" back so the user can select to disable EPM on a per site basis (and to re-enable the Whitelist already set by login script).
    /Aldus

    same as the ActiveXFiltering sign
    a "gray" circle
    So it's not the same.  ActiveXFiltering is definitely blue.  And there would be another indicator in the Address bar.
    still hoping that Microsoft And Adobe solves this BUG. It has to be one of the most common cases of all when it comes to an
    external viewer embedded in IE11.
    You have just reminded me of another closely related case I have to test when I get to a W7sp1 Pro X64 system I have intermittent access to
    http://answers.microsoft.com/en-us/ie/forum/ie11-windows_7/videos-still-will-not-play-in-ie-11-you-force-us/5b0b6d45-0c80-411e-adc3-ca90e194539a?page=2 
    So the common factors are embedded media, IE11 and W7sp1.  In the case of the video though I'm not sure where W8.1 is getting its control--seems not to be from Flash support and not something that is controllable by Manage Add-ons.  But I
    doubt that it really matters which control it is; the type of it probably matters more.
    In case it gets us somewhere diagnosing your case, can you try that example too please?
    Robert Aldwinckle

  • How make my internet open/start immediately when turn on computer?

    How make my internet open/start immediately when turn on computer?
    ps: using FFox, if it makes any difference.
    Don't think I wont't thank you, Cuz
    I will.

    Thank you verry much, HipHop.
    FFox has long been on my doc.
    I clicked it and it shows i have instructed it to 'Open at Login'.
    Same thing with Apple/Prefs/Accounts/Login items where it shows i have instructed it, and also Safari now, to Open at Login (and not checked to Hide).
    But still it never opens.
    Safari opens at login. But not Firefox.
    And it's not that the 2 are conflicting, cuz
    I had this problem with FFox long time when started this question;
    and I only just the other day added Safari to open at login cuz I was advised to try it just to see if Saf wd open on Login.
    I did contact my isp, dslextreme, but they couldn't help me other than the advice I've already gotten here, said not their specialty, that I should ask Apple or FFox (I'll try that).
    Thanks again, everybody.
    I still dream of what I will do with all the time I will save someday by not having to actually click on the FFox icon to start it. Call me a dreamer, but I'm not the only one (or am i?)
    ps: Are you really hip hop?

Maybe you are looking for