Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

nativescript date input validation

//If you want a date of type yyy-mm-dd
const date_check = /^d{4}-d{2}-d{2}$/;
    let check = date.match(data_check)
    if(check1 == null)
        alert('invalid date');
 
PREVIOUS NEXT
Tagged: #nativescript #date #input #validation
ADD COMMENT
Topic
Name
3+7 =