Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

date regex

^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]d{4}$
Comment

date regex format

(^(((0[1-9]|1[0-9]|2[0-8])[/](0[1-9]|1[012]))|((29|30|31)[/](0[13578]|1[02]))|((29|30)[/](0[4,6,9]|11)))[/](19|[2-9][0-9])dd$)|(^29[/]02[/](19|[2-9][0-9])(00|04|08|12|16|20|24|28|32|36|40|44|48|52|56|60|64|68|72|76|80|84|88|92|96)$)
Comment

regex date

^(?:(?:31(/|-|.)(?:0?[13578]|1[02]|(?:Jan|Mar|May|Jul|Aug|Oct|Dec)))1|(?:(?:29|30)(/|-|.)(?:0?[1,3-9]|1[0-2]|(?:Jan|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec))2))(?:(?:1[6-9]|[2-9]d)?d{2})$|^(?:29(/|-|.)(?:0?2|(?:Feb))3(?:(?:(?:1[6-9]|[2-9]d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1d|2[0-8])(/|-|.)(?:(?:0?[1-9]|(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep))|(?:1[0-2]|(?:Oct|Nov|Dec)))4(?:(?:1[6-9]|[2-9]d)?d{2})$
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery nearest 
Javascript :: disabled javascript 
Javascript :: jquery array merge 
Javascript :: regex for accepting mobile number only in 10 digit 
Javascript :: javascript toggle variable 
Javascript :: js get string byte size 
Javascript :: js get first 3 characters of string 
Javascript :: react count up every second 
Javascript :: javascript remove all the common value from array 
Javascript :: disable all buttons jquery 
Javascript :: react how to scroll to element 
Javascript :: javascript remove element from array 
Javascript :: remove multiple space to single javascript 
Javascript :: lua manifest code 
Javascript :: add an element to the front of an input list in javascript 
Javascript :: react native google play this device does not support 
Javascript :: switch case javascript 
Javascript :: copy text to clipboard jquery 
Javascript :: javascript before reload page alert 
Javascript :: loopback order by limit 
Javascript :: custom error js 
Javascript :: javascript regular expression flags 
Javascript :: drm react native 
Javascript :: how to hide source for react project 
Javascript :: store object in local storage javascript 
Javascript :: how to conver time format to 12 hours in javascript 
Javascript :: javascript size of variable in kb 
Javascript :: how to kill a running node process 
Javascript :: js delete dot 
Javascript :: document load javascript 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =