Validate date of Birth

How I can validate date of birth?
Month-Date-Year
Example: 11-21-1960
Thanks

You could use a regular expression:
E.g.
var dateRegExp = "^(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$"; // mm-dd-yyyy
if (oField.rawValue.search(dateRegExp) === -1) {
     // error!
Or you could use a date object as suggested in the previous post, but also stop the user from typing in a date so they will be forced to use the date selection box. This would ensure that the date is always in the correct format. To stop the user from typing in data, put the following code in the change event for the field:
if (xfa.event.change.length == 1) {
xfa.event.change = "";

Similar Messages

  • How To validate Date of Birth and Sysdate

    Hi friends,
    I want to compare day and month in date of birth and day and month in sysdate if both are equal i want to display some message like 'Happy Birthday' is there any possibility please let me know
    Regards
    Anusha

    Hi,
    Some thing like e.g.
    IF TO_NUMBER( TO_CHAR( l_your_date, 'MMDD') ) = TO_NUMBER( TO_CHAR( SYSDATE, 'MMDD') ) THEN
    END IF;
    In future it is better post these pure SQL and PL/SQL question to SQL and PL/SQL space
    Regards,
    Jari

  • RegEx to validate date between 1900 & today

    Hi,
    I have a RegEx which validates the date of birth
    (0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)dd
    But I want it to validate date of birth until today only from 1900
    How can I do that using regular expression?
    a®s
    Edited by: a®s on Jul 2, 2008 3:00 PM

    Thanks for your reply Jan.
    Jan Stallkamp wrote:
    > In general regex tend to be easy to write but hard to read. So from a maintance perspective they might not be the best choice. >
    I accept the fact that you mentioned above.
    I am planning different RegEx for different date formats.
    This application need to be called from a PHP page. so don't find any other way to tackle this issue.
    Any other info?

  • Please expose the employee ID field in ADUC in this version, also add a field for data of birth, and present both on the change password form so we can validate a user's identify when they ring up for a reset.

    Considering Active Directory is supposed to be all about business, corporations and enterprises, I find it staggering that in 2015 the ADUC console STILL does not expose the Employee ID field in the default UI without having to dig into the attribute editor.
    And then only if you browse to the user in their OU, the Attribute Editor tab is missing when you just search for the user. This isn't really helping our organisation. I've just setup the tech preview version of the new server version, and that doesn't expose
    it either.
    I'm not sure how other organisations handle this (suggestions please?), but when a user rings up the service desk for a password reset, we either have to keep them on the phone while we dig into their user account and look for the Employee ID for them to
    then confirm on the phone, or just take it on blind faith that they are who they say there are.
    Please for the love of all deities, can you expose the Employee ID field on the main user panel without having to dig into attribute editor. It would also be useful to show this information directly on the reset password dialog box so there's no looking
    up required. While you're at it, please can you add a date of birth field (if it isn't already there, I never seen one), and expose this on the main screen for the user, as well as the reset password box. This would give us two pieces of information to verify
    the identity of the user on the phone.
    All that being said, if anybody has a better way of identifying users on the other end of the phone, I'm all ears.
    Thanks in anticipation.

    Personally we use the AD selfservice plugin for manageengines service desk plus.

  • Date of birth validation using java script-very urgent

    hi all,
    i am new to javascript. i need to validate the date of birth entered by the user.date entered should not be greater than today's date.help me out with the code.i need to display only error messages without using alert boxes.

    user Date() function in javascript...
    This link wld help you in getting some idea on date functions..
    http://www.w3schools.com/js/js_obj_date.asp
    regards
    Shanu

  • Game center first time use won't get past entering date of birth

    Trying to use Game Center for the first time.  When I log in it says the following:
    "This Apple ID ahs not been used in Game Center.  Tap Continie to set up your account."
    I select "Continue". 
    Next is I verity my location (United States); United States is displayed so I select "Next".
    Next it says to "Create a Profile" and displays my Date of Birth.  It is displayed correctly, so I select "Next".
    Then it takes me back to the initial msg I listed above,  "This Apple ID ahs not been used in Game Center.  Tap Continie to set up your account.".
    Continuing, it just loops the same thing over again.
    What do I need to do to get this setup correctly and useable?

    My solution was to log into Game Center via my MaC Book Pro.  Once I did this, it let me log in from the iPod Touch. 
    One thing I did notice, logging in from the Mac, I was not asked all the "profile" questions I was asked on the Touch.
    Can't tell you why it worked through the Mac and not the Touch.  Something the App developer needs to address.

  • How can I change the date of birth on my child's Apple ID?

    HI,
    My son's school have started an initiative where they use iPads as part of their lessons, and subsequently my son has a brand new iPad through the scheme.
    The setup guide that the school supplied directed us to enter the parent's date of birth and the student's name to set up an Apple ID.  However, since setting his iPad up we have become aware of Family Sharing when we setup our old iPad for his younger brother, and the ability to create an Apple ID for a child.  We would obviously like the same level of protection and security for both children, not to mention restricting any accidental purchases!
    Is there any way to change his date of birth from mine to his?  I have read other similar posts with the best solutions apparently to fudge the date of birth so that the child is older than 13 years old.  I would like to do this properly rather than lie about his age...
    Thanks in advance

    You can not change the date of birth on the account. You are explicitly told this when the account is created.
    The ID you created is yours, not your son's. If your son is under 13, then to claim it is your son's ID is to say that you committed a crime when you created it. Create a new account for your son.
    Inform the school that if they are instructing parents to do this because the children are under 13, they are potentially criminally liable. They should know better.

  • How to Child Date of Birth on Child's iCloud Account

    Today I've created an iCloud child account / Apple ID for my 12 year old son who's just saved up and bought himself an iPad Mini (cue one very excited boy!) Unfortunately, when creating his Apple ID I accidentally set his year of birth to 2015 instead of 2003 so it's now showing him as being 1 month old.
    It appears that Apple won't allow me to delete his iCloud account from my family group so can anyone advise how I can either get round that restriction in order to delete his account and create a new one or how I can correct his date of birth?
    Thanks.

    Hi, I'm having the same issue. Trying to change my nephews birthday so that I can link him to my account but... 'Manage your Apple ID' can't change the date, it tells me "You cannot change your birthday at this time.". I notice that I can not change the birthday of my nephew so that he is younger than 13 years of age. I presume that this is a safety feature, good. However, how do I make this change with the necessary credentials?
    Thank you Apple.

  • How can i change the date of birth on my account

    how can i change the date of birth on my account

    Hello! Please login here: https://appleid.apple.com/account/manage
    Then go to "Password and security"
    Answer your security questions and the birthdate option will appear.

  • Somehow my MacBookPro iCloud account has a different name and password from my other devices.  Even my date of birth is listed incorrectly.  I have tried but can't seem to change this info to match up with my other devices.  Can someone help?

    Somehow my MacBookPro iCloud account has a different name and password from my other devices.  Even my date of birth is listed incorrectly.  I have tried but can't seem to change this info to match up with my other devices.  Can someone help?

    Thanks
    I have a PC (Windows 7)
    Not sure when mobile me changed, but it was this weekend that my storage etc. lapsed (I have paid to keep storage with icloud). So i assume this has something to with it stopping.

  • HT204053 My iPhone is set up with my old iCloud details. I can't remember the password, it is an old email address and it is not recognising my date of birth!! How can I delete it from my phone and enter my new Apple ID?

    My iPhone is set up with my old iCloud details - how do I change it to my new Apple ID - my email has changed. I can't remember old password and it's not recognising my date of birth. I no longer have the trusted device or key thing??

    Try going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I have to reset factory settings but Apple ID is old email no longer used. I can't recall the password and when I went to answer security questions it told me my date of birth was wrong. How do i rest password but get it sent to my current email addr

    I have to reset factory settings but Apple ID is old email no longer used. I can't recall the password and when I went to answer security questions it told me my date of birth was wrong. How do i rest password but get it sent to my current email address

    Go to http://iforgot.apple.com to get help with your password.

  • My new iphone is asking for an old iCloud password I can't remember the password, don't have access to the old email and when I try and answer the security question it is telling me that my date of birth is wrong?? Arggghh help?

    My new iphone is asking for an old iCloud password I can't remember the password, don't have access to the old email and when I try and answer the security question it is telling me that my date of birth is wrong?? Arggghh help?

    Contact iTunes Customer support... it is not possible to bypass Activation Lock.

  • How can I get my @mac email to work? when I try to reset password, i cannot access email for this and the security tells me I have wrong date of birth

    Have used bilmac@mac email address for years last couple of weeks am getting message icloud needs password which it then rejects, when I try to reset password,they want email to verify i cannot access email and the security question is D. O B. it tells me I have wrong date of birth. so I am stumped, any ideas bilmac

    COME ON PEOPLE. (WHY ARE THE LETTERS SO BIG HERE?) I AM VERY OLD AND JUST LIKE THINGS TO STAY THE SAME. I DID NOT, DO NOT, WANT ICLOUD TO DO ANYTHING I HAVE NOT USED IT AT ALL YET IT HAS MANAGED TO MESS UP MY EMAIL ADDRESS WHICH I HAVE BEEN USING FOR YEARS, IT ASKS FOR PASSWORD THEN REJECTS AND WHEN I TRY TO RESET WITH APPLE ID THEY ASK FOR SECURITY AS I CANNOT ACCESS THE EMAIL ADDRESS THEY HAVE FOR ME BECAUSE ICLOUD ASKS FOR PASSWORD, THEN APPLE TELL ME I DONT KNOW MY OWN DATE OF BIRTH, VERY CONFUSING

  • Getting error while tring to Check in any document in Sharepoint 2007. Error - "Unable to validate data. System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) ...

    Hi Team,
    I am getting error while tring to Check in any document in Sharepoint 2007. Error - "Unable to validate data. System.Web.Configuration.MachineKey.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength).
    Anybody please let me know how to resolve the issue. It has affected our 9 site collection with almost 2000+ sites. Please email me your your suggestion or you can share your ideas here also.
    Tried to reset the IIS, checked the Internet connection speed (8MBps). Cleared the cache and all but no luck.
    Thanks,
    Pronob

    Hello,
    I have found this support window for you:
    http://support.microsoft.com/kb/556031
    http://technet.microsoft.com/en-in/library/cc298582%28v=office.12%29.aspx
    This may help you
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • BILLING TO ACCOUNTING - FOREIGN EXCHANGE RATE IN THE PAST

    Hi All, 1.     In FI, we are maintaining translation rates on regular basis and the translation (FI)/ pricing (SD) date is our reference in SD transactions from Contract to Billing. 2.     In Contract, we maintain foreign currency, exchange rate, and

  • Passing multiple URL parameters with same name

    Hi, I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here. Background: I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connec

  • Apple's H.264 Trickery

    Does anyone know what encoder (software of hardware) was used to create the clips for Apple's HD Gallery? I can't for the life of me figure out how they managed to create such high-quality content at such low bit rates... I've tried encoding some SD

  • Vew is not working

    I am getting an error msg when i try to execute the below sql to create a view and i do not know why it is not working. I appreciate your help again. SQL> ed Wrote file afiedt.buf   1  CREATE OR REPLACE VEIW  BIDVENDOR   AS   2  SELECT DISTINCT V.VEN

  • How to stop a script that is slowing naviugation?

    I am getting the message A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: http://mail.yimg.com/zz/combo?nq/comms/shared/src/contacts-api