Answers for "mask date of birth/ dob in javascript"

1

mask date of birth/ dob in javascript

maskDate(date) {
    // console.log(date);
    var dateVar = new Date(date);
    // console.log("XX/XX/"+ dateVar.getFullYear().toString().substr(-2));
    return "XX/XX/"+ dateVar.getFullYear().toString().substr(-2);
  }
Posted by: Guest on December-30-2020

Code answers related to "mask date of birth/ dob in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language