MX:DateField screened with the date to a string database

Hello

I have a date in the database, in the format string that is dd-mmm-yyyy.

I want this date to be shortlisted in the datefield (on the calendar), for that I need to convert this string to a date object and then connect it with the mx:datefield.

I found that there is a function stringToDate(), but which is not applicable in my case or may be I do not use it correctly. I also found parseDateString which was also not useful.

What is the best way to do it? can someone help me with this?

Thanks in advance,
Gaze

Thank you guys for all your help and your time. I have some successful how to find a solution. :)

I used a split function to cut off date to date, month and year.
date_exp var: String = _userDetails.date;
var date1:Array = exp_date.split ('-');
var date: int = date1 [0];
var Lun: String = date1 [1];
var year: int = date1 [2];

The month of the converted entire string and then selected the date in the using Datefield
expDate.selectedDate = new Date (year, intMon, date);

Thank you
Gaze

Tags: Flex

Similar Questions

  • Carbon X 1 with the date of availability of touch screen

    Carbon X 1 with the date of availability of touch screen?

    Welcome to the community.

    The X1CT seems to be available to order online now. You can right-click on the link to the Lenovo store top shop.

    Kind regards.

  • computer does not boot, blue screen with the message: Stop: 0 x 00000024 (0 x 00190203, 0 X 86949258, 0xC0000102, 0x00000000)

    computer does not boot, blue screen with the message: Stop: 0 x 00000024 (0 x 00190203, 0 X 86949258, 0xC0000102, 0x00000000)

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?

    Start the computer by using the Microsoft Windows XP recovery console, and then perform a check disk on the file system.

    To do this, follow these steps:

    1. Insert the Windows XP CD in the CD-ROM or DVD - ROM drive, and then restart the computer. Select the required options to start the computer from the CD-ROM or DVD - ROM drive if you are prompted to do so.
    2. once the Welcome to Setup screen appears, press R to start the Recovery Console.
    3. If your computer is configured to dual-boot or multiple boot, select the appropriate installation of Windows XP.
    4. When you are prompted to do so, type the administrator password and press ENTER. NOTE: In Windows XP Home Edition, the administrator password is blank by default.
    5. at the command prompt, type the following command and press ENTER: cd system32
    6. type the following command and press ENTER: chkdsk /r /p
    7. remove the Windows XP CD in the disc drive.
    8. Type exit to restart your computer.

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost

  • CHKDSK replaced the security id not valid with default security id & showed a black screen with the mouse cursor

    Hi you

    After running CHKDSK, it said replacement of the security id invalid with the default security id in windows 7 64 bit

    After that it's over, he just showed a black screen with the mobile mouse cursor!

    I searched but did not find the answers on Microsoft

    Please help me

    Hello

    Thanks for posting your question on the Microsoft community.

    We need more information about the issue so that we can help you better.

    Check the drive run at Windows startup?

    Thank you for details on the issue.

    This message is displayed because the specified file has an invalid security ID. Each file on a NTFS or FAT volume has security what ID assigned. The ID assigned to the data file does not match the ID assigned to the security data stream file ($SDS). There is a mismatch of Ids. CHKDSK replaced the invalid security ID.

    Black screen with cursor may appear due to corrupted display driver.

    I suggest you try using the steps described in this article and check.
    Reference:
    Why my screen is black when I start Windows 7?
    http://Windows.Microsoft.com/en-us/Windows7/why-is-my-screen-black-when-i-start-Windows-7

    Important notes:
    Serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    http://Windows.Microsoft.com/en-us/Windows/back-up-registry#1TC=Windows-7

    Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    When you use system restore to restore the computer to a previous state, the programs and updates that you have installed are removed.

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • I get the blue screen with the exception of system Service in Windows 8. It seems that many people have of it.

    I get the blue screen with the exception of system Service in Windows 8.  It seems that many people have of it.  I can't use my computer without losing all the data every few minutes.  It is brand new.  Fix?  It often happens with Firefox, but other times too and restarts sometimes when you type an e-mail in the e-mail of Windows 8 program.

    For this recent System_Service_Exception error, if you have an AMD graphics card try the next tool from AMD to try to get the latest graphics driver:

    http://support.AMD.com/us/gpudownload/Windows/pages/auto_detect.aspx

    According to me, a recent update of Windows, maybe the 2778344 which updates win32k.sys to the 6.2.9200.16503 version, could cause a conflict with the AMD graphics driver.

    Many users report the same error recently and so far have all AMD/ATI graphics cards.

    If all goes well the graphic driver update will help.

    If the problem persists, consider uninstalling 2778344.

    Then, at the moment, 'hide' 2778344.

  • problems with the date picker

    I found some problems with the date picker to make my first presentation of object BPM.

    I created a group with a datetimestamp it contains. When I click on it in run mode, it will bring a new tab in the browser. This behavior is different from that of a date picker outside a group where there just a small javascript popup.

    Anyway around this problem?

    Also, would be nice if could be set by default to the current date. is there a way to who?

    For the component "time" it seems impossible to define the default value - at least on the tab object structure.

    Thank you

    Try to set the property "DHTML" to control date Yes. This option is under the Properties tab-> the calendar section. This will force it to use the popup javascript on screen instead of opening a new browser window/tab.

    To set a default value for a date/time, you can simply set the value in the constructor of the BPM object in which the property is located.

  • iPhone 7 more stuck on black screen with the spinning wheel

    How can I fix it? I tried to reset, go into DFU mode, recover from iTunes. Nothing works. I can't use iTunes because he wants me to grant access from my iPhone is not responding. DFU mode doesn't work, the screen does not any combination of seconds I hold down the buttons to. This has happened more than an hour. Should I just wait for the battery to die? Please note that I do not live in the United States or the U.K. or anywhere with an Apple Store, I can take it to.

    Thank you

    Hello! I think that I may have a solution to our problem of the black screen with the circle of rotation.

    I came across this post today because my iPhone all nine 7 (which I've upgraded to the latest ios) also got stuck on a black screen with the circle of rotation. I tried to update some of my apps, when suddenly the screen froze. I clicked once on the home button and the screen become black with the subsequent appearance of the circle of rotation.

    I have tried everything - simultaneously press the home button and power (does not work). connected to itunes to do a restore (it won't let me not because my "find my iPhone" was turned on - but I could not turn off because my phone was insensitive).

    In any case, a very useful Mr. Damon (Senior Advisor to Apple) helped me via chat to solve the problem.

    Here's what I did:

    1. make sure that your iPhone is disconnected from the socket or the computer.

    2. hold the POWER button and the VOLUME DOWN button at the same TIME. If it works, the screen should turn off almost immediately.

    3. connect your iPhone to the computer. (when I have connected to the computer, my iPhone automatically on and was ready to be reused).

    The steps below are for those whose iPhones did not turn with the above steps. The following steps are designed to allow you to disable remote your 'find my iPhone', so you can do a manual restore from iTunes.

    4. go to www.icloud.com.

    5. click on Find iPhone

    6. given that the phone is turned off already, he won't be able to find it. On the top bar, click DEVICES.

    7. click on your iPhone.

    8. click on "delete account".

    9. go into your itunes and do a restore.

    I did have to do steps 4 to 9 more, because as I said, my iPhone automatically activated after step 3.

    This really worked for me. I hope this works for everyone else too! Have a great day!

  • See the time with the date in the cell?

    How do you not see time with the date in a cell? I tried all the settings I can find but without success.

    Using the numbers from version 3.6.2 (2577) - OS: El Cap 10.11.6

    I don't want to see that 12:00:00 AM

    Hi Russ,

    Inspector to format > cell, the parameters as shown below:

    Kind regards

    Barry

  • Print an e-mail with the date of the transmission

    Hi, I need to print an email I wrote to send as proof, but when I do that it shows the date of printing, NOT the date it was originally mailed. Is there a way to fix this? I hope that you can help us as soon as POSSIBLE! Thank you, Annie.

    anniesol said

    Hi, I need to print an email I wrote to send as proof, but when I do that it shows the date of printing, NOT the date it was originally mailed. Is there a way to fix this? I hope that you can help us as soon as POSSIBLE! Thank you, Annie.

    Problem is now solved! Choose the print option 'other measures' dropdown list allows email to be printed with the date of the shipment.

  • I have a split screen with the left part always my Wordpress site. I don't know how to get rid of him... Help!

    I have a split screen with the left part always my Wordpress site. I don't know how to get rid of him... Help!

    See:

  • HP Pavilion HPE h8 - 1260t CTO: stuck at the screen with the words "Press ESC for Boot Menu" on the bottom

    I unplugged the graphics card to clean dust. After that I connected everything again, he stuck to the blue screen with the words "Press ESC for Boot Menu" on the bottom. If I press ESC at the beginning, it will go to a black screen and it will show the basic information of the computer (information about the processor and memory). It also show this black screen, "Press ESC for Boot Menu" on the bottom and it will show "Start menu" in the lower right corner. If I press F8 at the beginning, it's going to be the same black screen, but it does not "Start menu" show in the lower right. If I press F10 at the beginning, it will go to the same black screen, and it will show "setup" in the lower right. Can someone help me solve this problem? And thank you very much!

    So I suggest to look at the following and try to 'Clear the CMOS settings' as described at the bottom of the page: HP and Compaq Desktop PCs - specifications of the motherboard, IPISB-CH2 (Chicago).  Then see if there is no change at all.  If there is no improvement, then use the following http://www.hp.com/contacthp, fill in the form, create a folder for your question and then use the information to contact HP.

  • I just ran the last update for my iPad and now it just continuously reboots to the black screen with the Apple Logo. Hard restarting does not help, neither do not connect the camera to MacBookPro. Any ideas?

    I just ran the last update for my iPad and now it just continuously reboots to the black screen with the Apple Logo. I left plugged in all night and still no change. Hard restarting does not help, neither do not connect the unit to aMacBookPro. When I do this, iTunes complains that it can not connect because the iPad 'expires '. Now it is disconnected, but I can't turn it off. Even close the lid will not extinguish it. Any ideas?

    Try the following. It seems yo may have to let the battery drain is completely:

    - iOS: do not respond or does not light

    -Also try DFU mode recovery mode post-test

    How to put iPod touch / iPhone in DFU "Karthik doodles."

    -If failed and that you cannot completely turn completely the iOS device, leave the battery to drain completely. After loading a hour repeat the foregoing.

    -Try a different cable

    -Try on another computer

    S ' there is still not successful that usually indicates a hardware problem and an appointment at an Apple store Genius Bar is in order.

    Shop Apple Store - Genius Bar

  • I can't access my music library on my iPod 5th generation touch, although he was previously synchronized. When I press the icon of the music, I see a screen with the Apple logo and the word 'music '.

    I can't access my library of music on my iPod Touch 5th generation with the latest OS. When I press the icon of the music, a screen with the Apple logo and the word 'Music' only, not my list of playlists, artists, or songs.

    I myself have solved by doing a reset.

  • T-200 HP G60-white screen with the arrow of the mouse... Help! I tried a lot of things, but nothing works.

    Help! I was loading some CD last night in iTunes and let run all night. This am, I tried to wake up the PC again to a white screen with a mobile mouse arrow.  I sought the advice so far and found this informative link:

    http://support.HP.com/us-en/document/c03518165

    so I tried 3 of the 4 stages:

    Step 1: reset - MADE - always have a white screen with the mouse arrow.

    Step 2: Unfortunately, I don't have an external monitor

    Step 3: recovery of BIOS - DONE - always have a white screen with the mouse arrow.

    Step 4: reinstall the memory modules - DONE - always have a white screen with the mouse arrow.

    I restarted in Normal mode; In SafeMode... all with the same result = an empty space of the screen, a mobile mouse arrow... but I can't seem to Windows.

    Help, please.

    There are three main ways to restore your laptop to its 'Condition of the factory' - see the document on the corresponding link below.  There is a section to back up your personal files, see the section corresponding to your operating system including a video

    Performing a HP System Recovery - Windows 8

    Perform a recovery of the HP system - Windows 7.

    Perform a recovery of the HP - Windows Vista system.

    Perform a recovery of the HP - Windows XP system.

  • problem with the data record

    Hi, I'm new to LabView so I know that the thing I'm doing is relatively easy, however, I'm stuck.

    I made a small program that gets 5 steps (for now replaced with random numbers) and as well as the date and time data in the text file. I intend to run the program for long periods of time, so I want to increment the file name/path every hour, but after the addition of this part of the program does not create any file, although the program runs without error.

    Block diagram is attached, could someone point out to me what is wrong and what I should do to reach my goal?

    Thanks in advance!

    Hi marcis,.

    Acually, the logic of the program was completely wrong.

    1. your comments the file path will never help you. Because after leaving of while loop, the structure of matter will run once and LV will stops running.

    2. open and close the datalog only once file. Try to make all your manipulations between opening and closing your file datalog. Otherwise, it will be difficult to manage when you develop your code.

    3 case construction outside the loop is meaning less. If you want to run the program permanently, place all functions inside the while loop you want to run. While the loop will run continuously until you get satisfied.

    4. incorrect data streams. All programmers need well with the data stream.

    Just go into the basics of labview here and try to realize your logic again

Maybe you are looking for