java - how to verify input field type string that have the pattern of JSON date -
i have string input contain json date in format /date(1234043600000)/ question how can verify input json date format ?
i guess should use /[0-9] / how should date pattern?
json doesn't have native date type javascript does. uses strings that. however, looks using json string matches string date unix timestamp. match you'd this:
/date\([\d]+\)/
Comments
Post a Comment