DateField one month off

Has anyone else had any problems with the date of the datefield?
When I set the selectedDate property the month displayed is actually one higher then the month I give it.
However, when using the date picker it does show the date I selected...
I tried different ways of setting the date, but to no avail...
My code:
startDate = new Date();
startDate.date = 15;
startDate.month = 09;
startDate.fullYear = 2009;
<mx:DateField editable="true" formatString="DD/MM/YYYY" selectedDate="{startDate}"/>
output: 15/10/2009
Thanks
Skip

Blame Player.
Dates are usually a lot easier if you just create some static constants for the Month names:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Script>
        <![CDATA[
            [Bindable]
            private var startDate:Date;
            private const JAN:uint = 0;
            private const FEB:uint = 1;
            private const MAR:uint = 2;
            private const APR:uint = 3;
            private const MAY:uint = 4;
            private const JUN:uint = 5;
            private const JUL:uint = 6;
            private const AUG:uint = 7;
            private const SEP:uint = 8;
            private const OCT:uint = 9;
            private const NOV:uint = 10;
            private const DEC:uint = 11;
            private function init():void {
                startDate = new Date(2009, SEP, 15);
                callLater(df.open);
        ]]>
    </fx:Script>
    <s:HGroup>
        <mx:DateField id="df" editable="true" formatString="DD/MM/YYYY" selectedDate="{startDate}"/>
        <s:Button click="init();" />
    </s:HGroup>
</s:Application>

Similar Messages

  • How do i turn cellular on one month and off another with on auto-renew prepaid

    how do i turn cellular on one month, off several months, when i am on auto-renew prepaid with ipad

    I just called as directed by you and spoke for 20 minutes to Bridget.  Some
    of what I was told was not making any sense...then I asked her if she had
    any knowledge about how this works on Ipad and finally admitted she did
    not.  Hopefully it is now correct although quite frankly I am not sure.
    She also
    suggested I just call back and speak to someone else.  Unfornately today I
    do not have time.
    On Sun, Apr 12, 2015 at 5:22 PM, Verizon Wireless Customer Support <

  • I had a brand new Mac book pro one month old and the hard drive died. Right before it died I was down loading pictures off a memory card and now they aren't on my memory card! They are wedding pictures I took for a friend and irreplaceable! Please help!!

    I had a one month old Mac book pro and the hard drive fried! I was down loading a friends wedding pictures when it stopped working and started heating up. I plugged it in and turned it off as it was making a clicking noise. When I turned it back on the was a grey box with a question mark and nothing else. When I took my memory card out the pictures were gone. I took it back to best buy where I bought it and they said it was dead, needed a new hard drive and all my info is lost! Is there any way to get back those irreplaceable wedding pictures?

    There are some data recovery programs (software). I would look into that for the images on the card. When files are deleted, the files are still there, just the headers are removed. That being said, a format of the card or new files written to the card can overwrite deleted files.
    The physical hard drive could be thousands of dollars to forensically save, with no guarantee.

  • Dates off by exactly one month.  How do I fix this?

    The dates for my photos are off. Usually by exactly one month. This happens sometime after I import them. For example I took a photo at the my kid's last Soccer practice on November 6, 2007. I imported it on November 7th, 2007. And yet iPhoto '08 says reports original and digitized dates as 12/6/07. It reports file import date as 11/7/07 but last modified as 12/6/07 a few days from now! Batch change won't work. I could do it manually but it would take about a year full time.
    I am meticulous about setting time on my camera correctly and just checked this now. Not sure what happens when but iPhoto appears to be doing something very weird to my stuff. Anyone? Does anyone know how iPhoto gets its date info for photos?

    Larry, thanks for your post but I am unsure as to how to do this.
    Select a group of photos and use "adjust date and time" - NOT "batch change"
    In iPhoto I can change the dates for individual photos one at a time or I can distribute photos in time by seconds, minutes, hours and days but there does not appear to be any way to bulk shift time stamps by 1 month.
    "Adjust Date and TIme" does just what you want to a batch (group) of photos! (third try to explain - Old Toad or TD jump in here - obviously I am NOT being clear )
    Larry Nebel
    Message was edited by: LarryHN

  • HT4157 once you set up a account and just want one month service, how do you turn off the account after the one month

    once you set up a account for data service and just want one month service, how do you cancel after the month

    Hi Glenrose,
    That would be between the you and the carrier that you have the contract with. In the past, I was able to purchase only one month of service from AT&T. Not sure what carrier you have or what contract you have, but you would have to cancel it with them.
    Cheers,
    GB

  • P2415Q - No display over DVI, HDMI. No menu. Worked perfectly for one month over display port

    Reason Line: Dell P2415Q. After one month working perfectly over display port, no display on screen over Display Port or HDMI, no response to menu buttons, backlight and power LED on but no image on screen.
    Problem Description
    The monitor worked out of the box for one month using the display port to mini display port cable provided with the monitor, which was plugged into my XFX 7970 and 7950 graphics cards. It supported 4K at 60Hz and was exceptional for photos, videos and games. On Wednesday the monitor stopped working, no image or menu is displayed on the monitor. I plugged in my old monitor to help diagnose via DVI from the same graphics card. When I press the power button on the Dell P2415Q monitor, the power LED lights up and the computer detects the monitor (as shown in the windows screen resolution menu). It sets it as a secondary display but the monitor remains black, I can see the power LED and backlight is on. No power saving mode popup appears on the monitor, when I press the menu buttons there is no response from the screen, it remains black. I repeated with a HDMI cable the same issue occurs with no response or image. I repeated and disabled crossfire (which allows the graphics cards to function independently) and tried the second graphics card with no response. I tested the HDMI cable I used on my old LG monitor, it works well. I have tried connecting a laptop over HDMI to the monitor too, with no response from the monitor. I have exhausted all the tests I can think of, I presume I will have to return the monitor for repair or replacement under warranty. A question to the dell rep and community - is there anything else I can try / do to get it working? 
    Monitor / Computer Details
    Monitor service tag: <removed>
    Computer: Non-Dell, self build about 2 years ago. Ivy Bridge i5, Gigabyte Sniper Motherboard, 16GB RAM, XFX 7970 GPU and XFGX 7950 GPU in crossfire, 256GB SSD, 860W Corsair AX power supply (860W on 12V rails). Windows 7, 64-bit. (Secondary Monitor LG D2342).
    Operating System: Windows 7, 64 Bit.
    Video Card: XFX 7970 and XFX 7950 in Crossfire (tested separately, monitor produces fault with both).
    Video Card Driver: 14.12 AMD Catalyst Driver (rolled back to older driver, monitor still produces fault).
    Video Card Output Ports: Tested with miniDP and HDMI on both cards, with crossfire enabled and disabled. Monitor still produces fault.
    Video Card Cable: miniDP to DP cable provided with monitor. HDMI cable, tested with alternate monitor to confirm it functions correctly.
    Monitor Menu Button: Non responsive, when power is turned on the computer successfully detects the Dell P2415Q monitor, the backlight turns on but no image appear on the screen. Pressing the menu buttons yields no result - menu does not appear on the screen. Power LED is on.
    Monitor Purchase: Purchased from Overclockers.co.uk March 2015.

    * Turn the monitor off
    * Disconnect all cables from the monitor including the power cable
    * Press the monitor power button in for 15 seconds
    * Reconnect the monitor cables and re-test. If still no go, your only option is to get it exchanged per the purchased warranty
    * But first the service tag must be transferred into your name using this form

  • "how to use Query include one month "

    Hi all expert,
    How to make a request how to add table "QTYSALES one month yesterday"
    so that I can compare with this month.
    Query me this:
    SET ARITHABORT OFF
    SET ANSI_WARNINGS OFF
    SELECT T0.ItemCode, T0.Dscription,T1.OnHand, convert(varchar,SUM(T0.BaseQty*T1.NumInSale)) AS 'Qty Sales',DAY(GetDate()) as 'Days',
    Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END AS 'Total days'
    ,convert (varchar,(t1.onhand/(SUM(T0.BaseQtyT1.NumInSale)/DAY(GetDate()) Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END)))AS 'TURN OVER IN MONTH'
    ,round(convert (varchar,(t1.onhand/(SUM(T0.BaseQtyT1.NumInSale)/DAY(GetDate()) Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END))),4)* 30 AS 'Turn Over Days'
    FROM DBO.INV1 T0 INNER JOIN DBO.OITM T1 ON T0.ItemCode = T1.ItemCode
    WHERE Month(T0.DocDate) = Month(GetDate()) AND Year(T0.DocDate) = Year(GetDate())
    GROUP BY T0.ItemCode,T0.Dscription,T1.OnHand
    union
    SELECT T1.ItemCode, T1.itemname,T1.OnHand, '' AS 'Qty Sales',DAY(GetDate()) as 'Days',
    Case WHEN Month(GetDate()) in (1,3,5,7,8,10,12) THEN 31 WHEN Month(GetDate()) in (2,4,6,9,11) THEN 30 ELSE 28 END AS 'Total days'
    ,'No Sales' AS 'TURN OVER IN MONTH'
    ,NULL
    FROM DBO.OITM T1
    WHERE T1.ITEMCODE NOT IN (SELECT ISNULL(ITEMCODE,0) FROM INV1)
    GROUP BY T1.ItemCode,T1.itemname,T1.OnHand
    ORDER BY 1
    thanks for all
    Edited by: rachelhel on May 20, 2009 8:06 AM

    haiiii allll pls help...thankss
    Hi consulatant B1
    How to use Query
    My goal is to create a table to see * The number of sales in a month yesterday *
    I want to make a request showing the amount of sales at the end of the month.
    For example this month is on May 25, so I want to show the Quantity of one month April 25
    I have tried several times, but still just wrong.
    I need expert help to solve the problem for me.
    thanks

  • After one month of fine usage, my iPhone cannot connect to or recognize any cellular network.

    After one month of using iPhone 4s w/o any problems, it started to go off and on from cellular network. Now it is only "Searching..." for networks unable to connect. When I switch off "automatic carriers" it's the same. I already tried to swith off/on airplane mode and device but w/o success. Help, please...

    I too are experiencing the same problem on a 8gig 3G Telstra Australia iPhone that was bought outright. I also have another (same) iPhone and the settings on both are identical yet the new phone refuses to connect. I have tried a few ideas/suggestions including: settings, general, network, cellular data network and changing it from telstra.iph to telstra.internet. this works but I think something is wrong because to .iph refers to iPhone (I have switched it back until to confirm with telstra about this).
    I have also tried settings, reset, reset network settings but this did not help but has worked for others.
    I have also tried turning off the unit and taking out the sim card and restarting the iPhone but again no luck yet.
    I plan to speak to both Telstra and Apple to see if this problem has a simple solution and will post a new thread titled "solution to cellular network problems".
    Personally by all the trials and errors so far I believe it is a carrier problem and having to re-enter the pin on this phone everytime I re-boot it suggests it could be sim card related.

  • I bought 4s one month back and my phone is automatically shutting down

    I have bough a 4s like one month back and my phone is switching off on its own . i need help like ****

    Take it to the Apple  Store and ask them to check it out for you.

  • My I pod touch 5th one month old wont charge. Its on charger for 2 days but battery does not move from red sign?

    My I pod touch 5th one month old wont charge. Its on charger for 2 days but battery does not move from red sign?

    Try the remaining items of:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • One Month Since I Pre-Ordered My iPhone 4s

    It was about a month ago.  I strolled into my local Best Buy and placed my order for the new iPhone 4s.  It had finally come to the Sprint Network.  I was excited.  I pictured myself getting lost in DC with only the snarky, smart @$$ voice of SIRI to guide me safely home.  On my way, I would use my Urban Spoon app to checkout local restaurant to grab a bit to eat.  I couldn't wait until October 14.  I even took the day off.  It was just like Christmas.  I remember getting up early that morning, taking a shower and heading out to College Park.  I was in so much of a hurry, I didn't check the time.  I stop off at the local dinner to grab a sandwich.  I walked through the door at 10:05am and give the sales clerk my receipt.  And that's when it happen...........nothing!!!  Happy One Month Pre-Order iPhone 4s Anniversary!!!

    Happy 1-Month!!! How many of your friends got their Iphone 4s' while you are unable to get your own? My boss even got his before me, safe to say he got his at an Apple store. No longer will I go to Best Buy for Apple phones.

  • One month unrestricted usage.

    Had a letter off BT saying that for one month only there would be no restriction on bandwidth or whatever you want to call it. Why just a month and do they have any plans to do away with throttling p2p stuff all together in the future??
    Apologises if i am in the wrong section for this question

    wdmn wrote:
    I chose to separate the current year as a catalog and have V5.2 update only that portion of all images and left years 2007 to 2012 untouched.
    I'm not intending to update those images to 5.2 until this correction of feathering for the clone brush is adjusted.
    If you haven't deleted your original catalog attached to v4.4 the older images can still be retrieved by opening Lr4.4.if you have kept it installed.
    Yes, that's the approach I'm taking...back to my old 4.4 catalog and wait. Thanks for the info regarding the 3-month estimate. That's what I suspect might be the case, and I'm frankly p*ssed to hear that (if it's true).
    Before purchasing the LR 5 upgrade I'd been carefully monitoring posts in this forum during the 5 beta and then after the 5.0 release. When 5.2 issued and seemed to fix some of the egregious issues I stopped checking the forum so carefully--concentrated on getting my Mac OS updated so I could get LR 5.x. I got everything installed and updated and then within 5 minutes of using it saw the problem (and did a forum search) and realized I'd pulled the trigger too quickly. Well, it's only 79 bucks, and I will... eventually...get to use a fixed version.
    Phil

  • One month after purchase, external battery has died

    Hello! One month after I purchased my Lenovo, the external battery on my laptop is dead. When I checked the Power Manager, it said that the second battery is not working and I should replace it. Plus when the external battery is connected to my laptop and I disconnect the power cord, the laptop shuts off.
    I bought the four year think vantage depot protection or whatever it's called, and I have an X1 Thinkpad. Am I able to replace my external battery for free? What would I have to do? I tried finding this info online but I'm having trouble finding information about it

    @Afridicy,
    There is a battery firmware to fix this issue.
    Please refer to this.
    http://forum.lenovo.com/t5/X-Series-ThinkPad-Laptops/X1-Slice-battery-not-charging-Battery-2-A-batte...
    //JameZ
    Check out the Community Knowledge Base for hints and tips.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    X240 | 8GB RAM | 512GB Samsung SSD

  • Hi there, I have a 2009 Macbook - running on OS X V.10.6.8... but I'm looking at upgrading the Operating System to V.10.10. Will your latest version of LIghtroom (the one I can currently get a free one month trial of from your site) work with Apple's late

    Hi there, I have a 2009 Macbook - running on OS X V.10.6.8... but I'm looking at upgrading the Operating System to V.10.10. Will your latest version of LIghtroom (the one I can currently get a free one month trial of from your site) work with Apple's latest operating system - Yosemite V.10.10? Or will LR only work with V.10.7, 10.8 or 10.9?
    Thanks, Seamus

    Hey, problem solved. One of the drives was faulty. I erased the 2nd drive (which was showing up as the degraded raid slice), deleted the RAID set and restored the 2nd drive from a back-up disk image. After that, when I booted using 'option' I was presented with two boot disks but only one that worked. And when it did boot  up only the reformatted disk was showing in Diskutil so I'm guessing the second one is knackered. With it still in place the server still wouldn't boot up from a full shutdown, but the moment it was removed it booted up no probs. Wakes up from sleep as well so it seems sorted.
    So now just need to decide whether I'll bother with replacing the second drive or just use an external back-up. I have just bought a 1TB drive to back up to so will probably just go with that.
    Btw, is there anyway I can test the drive I removed to see if can be saved?
    Thanks for all your help. Your siamese twin comment was the push I need to erase the drive, I'd be holding off before that.
    Warren

  • Z10 / BB!0 - Exchange Mails will be auto deleted after one month!???

    hi,
    i have a big problem with my Z10. after one month of use, i detected that ALL mails (sent mails also) are auto deleted from my exchange accounts which are older then one month!? i don´t find general settings to deactivate this STUPID setting!
    I´m verry angry, because I loose hundreds of mails from 4 diffrent exchange accounts!!!
    thanks for some hinds to avoid this in the future.
    BR david

    Hello Komanaut and welcome to the BlackBerry Support Community Forums.
    Sorry to hear you're experiencing issues with your email.
    To clarify, are the emails deleted off your device and your email account on the computer? Or just on your device? 
    Thanks!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for