How to validate a date with time

Hi all

How can I validate date with time?

Here is my code:

var tempDate:Date = new Date();

If (tempDate < 18 September 2012 07:30 ') {}

doSomething

}

Thanks in advance

A cleaner way is the dateCompare method:

If (ObjectUtil.dateCompare (date1, date2) > 0) {}

Date1 > date2

} else ObjectUtil.dateCompare (date1, date2)<0)>

date2 > date1

} else {}

date2 is date1

}

Tags: Flex

Similar Questions

  • Oracle SQL Developer - how to display the date with TIME

    OK I change the setting of the NLS to DD-MON-RR HH.MI. SS
    (Tools-> Preferences-> database-> parameter NLS)

    BTW - what is changing the format of the database or just my client side? I don't want to change the database and other users would be affected by my change.


    I check the date time poster by practice
    SELECT double TO_CHAR(SYSDATE + 1, 'DD-MON-YYYY HH:MI:SS');

    Returns
    JUNE 24, 2009 10:32:55

    OK, here is my problem or question...
    but I wan't do in East... I have a column in a table that stores a number of minutes from a given date...
    the given date is 12/30/1899 00:00:00

    If I want to display the minutes in a format of date and time... but when I do
    Select To_TIMESTAMP (30 December 1899 00:00:00 "," mm/dd/yyyy HH24:MI:SS) + (Start_Moment) / 1440.
    To_Date (30 December 1899 00:00:00 "," mm/dd/yyyy HH24:MI:SS) + (Stop_Moment) / 1440
    from tableA

    RESULTS
    22 JUNE 09 23 JUNE 09

    I tried the function TO_CHAR but don't have time to be like
    Select TO_CHAR (to_date('12/30/1899 00:00:00', 'mm/dd/yyyy HH24:MI:SS') + 57580140 / 1440) double

    RESULTS
    22 JUNE 09

    I don't know that it's the simple convert function that I do not know...

    Mark as answer?

  • How can implement you not with Tim Capsule and AirPort their simulation on the iMac?

    Hello

    How can implement you not with Time Capsule and AirPort their simulation on the iMac?

    I don't know what you're asking.

    AirPort Extreme is a wireless router.

    A Time Capsule airport is an AirPort Extreme with a built-in hard drive for data storage.

    An iMac is a Mac computer.

    An iMac is not a wireless router, so he is unable to perform the functions of a wireless router.

  • How to set the date and time in eAiO Officejet Pro 8600?

    The printer is connected with the USB cable and the date & time display zeros. I wasn't able to find a menu option for date & time setting in the printer Panel. The user guide mentions nothing about it. How can I configure date and time?

    Hi Exxpert,

    Here is a tutorial from HP on how to set up this printer, scroll all the way down to step 9 for the date and time.

    Configuration printer Officejet Pro 8600

    I hope this helps!

  • How to set the date and time on my HP Officejet pro 8600 more?

    How to set the date and time on my HP officejet pro 8600 more?  It just on a printed journal Jan-oo-oo fax shows 00:00 AM.  There are no instructions on how to change this.  I need proof that I sent a fax to a certain date and time.  Help, please.  Thank you

    Hello

    Below are the steps to set the Date and time for your device:

    1. On the Control Panel, press the right arrow key ( ), press Setup ( ).

  • Camileo S20 - How to display the date and time

    Hi, all. I got as Christmas present the Camileo S20, and I am not able to view the date and time in the video. In the manual is no reference on this subject, only how to set the date and time. But what is the intention to set the date and time in the camera, if it is not possible to display video?

    Hello

    Have you checked the user manual of your TV cam?

    If it of possible to display the data and the time you can find in your user manual how to do this. It always interesting to read ;) s

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • How to set the Date and time on a remote target in Measurement &amp; Automation Explorer (MAX)?

    Hello

    I'm trying to follow the steps described in the following link:

    How to set the Date and time on a remote target in Measurement & Automation Explorer (MAX)?

    It is said

    The software on the target currently supports only the time zoneand deletes the old files?

    I need set the date and time

    and remove all the old unwanted files

    the calendar was gray does not allow me to change the current date.

    Anyone know how to change

    Hi all!

    According to this the below Knowledge Base article, Remote Configuration System Support must be installed on the target for time settings to change in MAX.

    http://digital.NI.com/public.nsf/allkb/FAB0EC4D6E5EE0F386257738005733A3?OpenDocument&MeTC=max_MAXDat...

    If you don't know what version of the system supported remote Configuration software that you have installed on your device target, it is likely that it is not yet installed. Add this software by clicking below your target to the MAX software option and selecting "Add/Remove Software". This is where you will install the System Configuration Remote Support software.

    Please let us know if you have any questions!

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • How to set the date and time on an hp j5780?

    I need to know how to set the date and time on an HP j5780!

    Help!

    Thank you very much, we did it!

    WY

  • How to create dummy data with 1 TB

    Hi Expert,

    May I know how to create dummy data with 1 TB to test performance. ?

    Respect of

    Liang

    what columns you want to include? Basically, you can generate as many lines as you like to connect by queries - something like:

    create the table big_t

    as

    with

    generator1 like)

    Select rownum id

    of the double

    connect by level<=>

    )

    ,

    generator2 as)

    Select lpad ('* ', 1000,' *') col1

    of the double

    connect by level<=>

    )

    Select g1.id

    g2.col1

    of generator1 g1

    generator2 g2

    ;

    Of course, it is not 1 TB, but you can change the number of levels. Who said: I think you need to find a sensitive table first structure.

  • Satellite Pro 6100 - how to change the date and time in the BIOS

    Hello

    I received a satellite pro 6100 that had not been used for some time. Windows does not work then he reinstalled with the good drive.

    When I try and windows 'enable', I get the error 32777 and the laptop is unable to connect with the activation servers that a google leads to believe me that the date and time are incorrect in the bios.

    I know that Press esc to access the bios but there is no option to change the date and time in there. I put the date / the correct time in windows, but this does not seem to synchronize with the bios. I've updated to the latest version of the bios, but this is not enough.

    How can I change or update the time in the bios?

    Thank you

    Hello

    I doubt this time and date setting BIOS does affect Windows activation time Windows doesn t affect it in my opinion. There must be another reason for this problem.
    You can activate Windows by phone?

    Normally the date and time in the BIOS can change you if you mark the date or time, and then press on + or - to change this. Sometimes you have to press PageDown/to the top according to the model of BIOS or laptop.
    Usually in the configuration of the BIOS you will find a brief info how changing the values.

    Check this box!

  • Want 5660 - how to change the date and time

    During installation, I thought that I had chosen the date and time.  Not happened.  After that installation is completed how to make these changes?

    Hey @Americanpioneer,

    Welcome to the Forums of HP Support!

    I understand that you would like assistance setting the date and time on your HP ENVY 5660 e-all-in-one printer. I would like to help you today with these two settings properly.  Please follow the steps below to set up your date and time.

    1. With the printer on, use your finger to scroll to the left on the touch screen (such as a mobile phone) and you will see the installer
    2. Select Setup to access the Setup menu
    3. Then tap Preferences
    4. In preferences, you will see now Date & time
    5. Contact Date to change the date on your printer
    6. Affect the time to change the time on your printer

    Please let me know if these steps don't resolve your problem. Good luck!

  • How can I do data with more than 72 dpi in loose 8?

    When I want to print or send my photos, I get the message that it is printed with less than 220 dpi (in fact it's 70 or 72 dpi). How can I make my data with the normal 600 dpi?

    You must resample the image by Image > resize > image size.

    Please look at this from the help file:

    http://help.Adobe.com/en_US/PhotoshopElements/8.0/win/using/WSae2ea3b149d0c3591ae939f10386 0b3d59 - 7ee0_WIN.html

    Note that for printing, it is desirable to have the resolution = 240-300 px / in. If it's a very large print, you can come out with a lower resolution, as the eye of the observer is at a greater distance.

    The 220 px/guest to come up now and then, and most of the time I ignore it.

    For web work, 72px / is fine.

    If you have additional questions, please repost.

  • How to set the date and time so it appear on my fax

    I sent a fax today and the report that was printed after ward did ' t have the correct date or time - how to reset the time and date on the HP officejet 6500 has more all-in-one.

    Thank you!  How simple. Here the help section on HP could help.  I must have spent over an hour tring to figure it out on my own and search on the HP website.  Now, I know. Thank you once again!

Maybe you are looking for