check the valid dates

Hello

I got a date in the format DD-MM-AA string entry. How would check date-code valid for a given year. For example, Feb should have 28 days (with the exception of leap years), Jan has only 31 days, and so on...

Thank you

DP

That should do it.

It works by converting DD-MM-YYYY to seconds and then by converting to a timestamp.  It then compares the original timestamp to the timestamp converted.  If the two are identical, it is a valid date.  If she comes back with another date, it is not valid.

On 31 February will become March 2.  Although both have the same value of seconds, the day and month values are different, so that he knows that is not valid.

See you soon.

Tags: NI Software

Similar Questions

  • Dead Rising 2 via Steam Windows Live error - must check the release date of your game

    The facility is nice and smooth, and then he launched Games for Windows - Live (which I am currently connected to)

    "Games for Windows - LIVE should check the release date of your game." Please make sure that your computer is connected to the internet.

    No personal information will be sent to Microsoft. A LIVE ID is not necessary. »

    There are no options. I can't get my CD key, I can't try to reconnect to the internet in this window, or something like that. Closing the window or by reducing it is my only options. It is a part of the installation process of the game, so since this is the last step I'm stuck here and I'm not sure how to fix. Thanks for any help.

    I am connected to the internet. I have disabled the firewall of windows 7, my firewall staff and is gone from my router to my cable modem to make sure that the firewall of the router is not a problem. I rebooted my cable modem, computer. Had no other programs running and tried while being not connected to Windows Live and signed in just to make sure that the Games for Windows Live Server has increased.

    It is now installed on the C: drive. Apparently it was a question mentioned on the Steam Forums as a problem with this game.

    I don't know if it is a parable of Descartes where I think I'm connected to the internet and to talk to people on the internet, when in reality I'm thrilled by the great deceiver.

    After so many months I doubt you care no more, but just in case anyone wants it, I found the solution (for me).  My DPI (font size scale) was higher than normal.  Windows LIVE dialogue here does not take this into account, so do not appear buttons that are supposed to appear.  Just press ENTER to continue on this screen, or set scaling back to normal fonts, and you'll be able to read the whole dialog box and see the buttons.

    Hope this helps someone.

    -John

  • What tool can be used to check the validity of the drivers

    original title: drivers

    does anyone know of a utility driver... free preferbly :)... outside the windows update that checks the validity of the drivers with a repair with a single click to delete / update etc... Thank you

    Hello

    To add the good advice of T.G.:

    Automatic driver update programs often fail, and when this happens, the results can be a nuisance
    to a disaster. Manual update of the pilots is my preferred method.

    Maybe need of these:

    This utility, it is easy see which versions are loaded: (this is not an automatic update of the driver
    It just allows you to easily see information on the drivers of program.)

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system. For
    each driver in the list, additional useful information is displayed: load address of the driver, description,.
    version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - Device Manager - Display Adapter - note the brand and complete model of your
    video card - double - tab of the driver - write version information. Now click on UPdate Driver (this
    cannot do anything as MS is far behind the certification of drivers) - then do a right click - Uninstall - REBOOT
    This will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party with their
    own the software and drivers and all other main drivers that you have.

    Now go to the site of the manufacturer of system (Dell, HP, Toshiba as examples) (restoration) and then of the manufacturer of the device
    (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for the BIOS, Chipset and software)
    updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AS ADMIN - REBOOT after each installation.

    Always check in the Device Manager - tab drivers version you install actually shows up. This
    because some restore drivers before the most recent is installed (particularly that audio drivers) so install a
    pilot - reboot - check that it is installed and repeat if necessary.

    Repeat to the manufacturers - BTW on device at the DO NOT RUN THEIR SCANNER - manually check by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver in the Windows updates,
    This leaves ONE of Windows updates, but it will not install the drivers who are generally older and cause
    questions. If updates offers a new driver and then hide it (right click on it) and then go look for new ones
    manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    Hope these helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to check the manufacturing date of the Z3 Compact?

    How to check the manufacturing date of the Z3 Compact?

    @HerrOdin

    Simple, pull on the flap of the IMEI and search for 14W__

    The first 2 digits are for the year and the last 2 digits are the week

    http://support.sonymobile.com/global-en/xperiaz3compact/Userguide/IMEI-number/

  • Fable III PC Retail - cannot activate the game. Windows-live should check the release date of your game make sure that your computer is connected to the internet.

    I just purchased Fable III PC Retail today and I installed and you get the following message:

    Games for Windows - LIVE should check the release date of your game. Please make sure that your computer is connected to the internet.

    No personal information will be sent to Microsoft. A LIVE ID is not necessary.

    As you can see I have an internet connection because I am writing this post. There is no button to push or anything to continue the activation process.

    The game was released in 2011 and 2012 is beyond the release date.

    What is the problem here?

    Using Windows 7 Ultimate Service Pack 1

    I7 2670qm processor

    16 GB of Ram

    NVIDIA Geforce GTX 560M / 3GB

    I found the answer myself. There is a bug in the commercial version of this game. In the pop up menu it is supposed to be a button that says "enter", but it does not appear then press just enter on the keyboard and all is well.

  • Bulletstorm on W7 error""we must check the release date of your game, make sure that you are connected to the internet"on pressing ENTER.

    Original title: Bulletstorm on W7

    Hi, I installed Bulletstorm for my grandson on w7, on the start-up of the prog. It comes up with a "we need to check the release date of your game, make sure that you are connected to the internet" on pressing enter, he says: I am not connected to the net and unable to connect to live, even if that window is open!

    XM

    Given that Bulletstorm is not a product of MS, I suggest you cont EA (the developer) for assistance

    http://www.EA.com/Bulletstorm

  • Check a valid date in a text field

    Hello allbody!

    I have a challenge that seems a little tricky. I have a text field that appears as a comb of 11 characters. The user will enter numbers in the format 999999-9999. Now, I would check if FIR 6 figures are a valid date in the format DDMMYY. (the last 4 digits are random)

    How can I do?

    Kirstine

    This must be tested THOROUGHLY. My test was very limited. Given a two-digit year validation checks only two numbers (\d\d).

    Form1.Page1.Subform1.TF1::exit - (JavaScript, client)

    If (!) ((this.isNull))) {}

    var regEx = /^(0[1-9]|[_12][0-9]|3[01]) (0 [1-9] | 1 [012]) \d\d$/;

    var str = this.rawValue;

    Str = str.substring (0.6);

    If (regEx.test (str)) {}

    xfa.host.messageBox ("valid MMDDYY");

    }

    else {}

    xfa.host.messageBox ("invalid MMDDYY");

    }

    }

    Steve

  • How to check the manufacturing date of the Z2?

    Hello, so the title sums up pretty much everything this. On the previous xperia phones, you can check under the battery, with xperia Z, that it was written on the back at the bottom but on Z2? How to check the date of manufacture?

    Hello and welcome to the community! Since you are new, please make sure that you have checked our Forum.

    This label can be found in the MicroSD slot, click on the following link:
    http://Userguide.sonymobile.com/referrer.php?region=en&product=Xperia-Z2#IMEI-number.html

  • How can I check the validity of an email allegedly from apple?

    received a "Bill" for the use of cloud, but kept such a thing. Through the ' Manage/Cancel' button it asks a series of questions that slap just impersonation. How can I check if its valid please?

    I doubt very seriously that it is legitimate to Apple. Do not click on links in the e-mail or enter information in any website referenced in the email.

    The following bandages may be useful:

    Apple claim that suspicious e-mails called for iTunes are reported to the iTunes customer service:

  • How can I check the validity of an email from Windows Live team


    Dear owner,

    NOTIFICATION OF VIRUS

    A Virus of the DGTFX were found in your folders. Your email account must be upgraded to our new version of 2012 DGTFX secure antivirus to prevent damage to our web mail log and your important files. Click the response tab, fill in the columns below and send to us, or your email will be terminated to avoid the spread of the virus.

    Note that your password will be encrypted with keys RSA 1024 bits for the security of your password

    .

    * Full Name:......................................

    * Username:........................................

    * Password:.........................................
    * Date of birth:...
    * Country or territory:...

    WARNING! Account holder who fails to check access to his account after two weeks of receiving this warning will lose his account permanently.

    Microsoft respects your privacy. To learn more, please read our online privacy statement:

    You have received this e-mail because you subscribed to Windows Live Alerts.This is an unmonitored email account. This email was sent by Microsoft Corporation, One Microsoft Way, Redmond, WA 98052. ? Microsoft Corporation, 2012. All rights reserved

    Please do not forget to Hotmail, Messenger, and SkyDrive are available directly from your phone or a web browser on the phone. For more information, see retrieve messages on your phone, Download Messenger on your phoneand Get SkyDrive on your phone.

    We remain focused on the provision of Hotmail, Messenger, SkyDrive and your Windows PC the best they can be. Note that this change does not affect your ability to access Hotmail, Messenger, and Skydrive.

    Thank you for your understanding and patience as we update our services.


    Sincerely,
    The Windows Live team

    It is a common phishing e-mail - it's bin.

    The idea is in the links embedded in the headers of enamel and the request for information by e-mail

    Sites form of legitimate emails will NEVER ask for personal information by e-mail (unless you started the conversation) - they STILL will be asked to log in and do what is necessary.

  • Error in the validation data source

    I install LivCycle on SUSE 10 with Weblogic 11 g and Oracle 10.

    When you try to post, the following error occurs:

    Validation of datasource...

    DataSource fail

    Name: IDP_DS

    JNDI:IDP_DS

    Invalid data source settings. Impossible to find/search for IDP_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    ALC-LCM-120-301: invalid data source settings. Impossible to find/search for IDP_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    DataSource fail

    Name: RM_DS

    JNDI:EDC_DS

    Invalid data source settings. Impossible to find/search EDC_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    ALC-LCM-120-301: invalid data source settings. Impossible to find/search EDC_DS data source. The data source cannot be configured or may have failed to get in line or is not accessible outside the LiveCycle application.

    Any ideas?

    Thank you!

    Using secure data sources?  More details here:

    http://blogs.Adobe.com/LiveCycle/2010/04/livecycle_on_weblogic_-_securi.html

    http://blogs.Adobe.com/LiveCycle/2010/09/increasing-WebLogic-as-JDBC-connection-pool-size-pour-LiveCycle-Contenu-services-ES2.html

  • Check the validation of fields in form of object

    Hello

    I have a requirement where I need to check if the user login is entered in one of my fields of form object already exist in IOM until the application is submitted. Basically, the admin by filling in the field should get to know the user Id entered it already exists in the IOM. Is someone can you please tell me how to implement this.

    Thank you
    PETREA

    IF(CheckUserID!=true)
    Job Manager error

  • How to check the activation date of the ipad

    Hello

    I want to see an ipad from a person who said that this is not enabled yet.how so that I can check.

    Please tell me what should I check other important things.

    Thank you

    There is no way to check if it is enabled.

    Do not do this: https://www.icloud.com/activationlock/

  • Where can I check the validity of the license before buy you?

    Hello

    I want to buy previous versions of adobe products by ordering CS6 Master Collection on an Internet auction. The price for a new product in the retail version is around € 800. Can you tell me where I can verify the authenticity of this product or dealer? I don't want to buy pirate/product key.

    Examples of this auction:

    [link removed by moderator - advertising]

    Thank you in advance!

    While the forums are open 24/7 you can't contact Adobe support at any time

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    In addition, the seller MUST complete a transfer members creative cloud can transmit or sell old versions of CS?

  • check the installation of directx valid message on Skype

    original title: directx

    I have a problem that I try to make a video call on Skype, I get message 'check the valid installation of directx' how check it out or fix it?

    Hi John,.

    (1) if it works well before?

    (2) remember to make changes?

    (3) what version of Windows you are running on the computer?

    It is sufficient to indicate the complete error message you receive.

    You can follow the steps given by Azeez N and D of Diana in the links below that addresses this issue

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/cant-start-video-renderer-check-you ' ve-got-a-valid/3cb8e374-8cea-4722-b094-9bfcfd11bca6

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/how-to-check-if-you-have-a-valid-DirectX/1282d473-99f7-49f0-9f86-54227a2dbfea

    If the problem persists, please contact Skype more specialized.
    http://www.Skype.com/intl/en-us/support/user-guides/

Maybe you are looking for

  • Unable to get the key to unlocking - said unqualified

    Hello I tried to get my motorcycle G XT1032 unlock code camera, but received the error "device is not eligible for unlocking the bootloader. I already deleted the spaces and the part (bootloader) and many repeated the same process, but it still doesn

  • Pavilion g6-2298se bluetooth not found

    Product name: HP Pavilion Notebook PC g6 Product number: D4A12EA #ABV Serial number: [Personal information]         Bios:                              F.25 - 29/05/2013 Processor name: Intel Core i5 - 3210 M CPU @ 2.50 GHZ Wireless adapter: Adapter R

  • How to re - install XP Pro without keeping any of the old programs?

    I recently did a re-install XP Pro and all the old programs do not have are deleted. I care about her like new with nothing on it but the program XP. What did I miss? I followed word for Word the installation menu.

  • Cannot receive/send on Windows Vista Mail

    Cannot receive/send on Windows Vista Mail... I get a message that says... Some errors occurred during the processing of this task... see below for a list of errors... There are no errors listed below for me to check... How can I solve this?... Can I

  • BlackBerry Smartphones wired headphones only work with Media Player - only in calls

    I have a generic wired headset connected to my Blackberry 8310, which works very well to listen to music and watch films through the media player, but when I try to make a call the sound is not patched with the headset (the speaker on the device is a