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 :: get element by name in jquery 
Javascript :: js array 0 to n 
Javascript :: upload file angular 
Javascript :: foreach loop js arrow functons 
Javascript :: javascript declare string in multiple lines 
Javascript :: setAttribute is not a function jquery 
Javascript :: js remove key from object 
Javascript :: new date() javascript 
Javascript :: how to disable right click of mouse on web page 
Javascript :: THE REDUCE() METHOD IN JAVASCRIPT 
Javascript :: nuxt 3 add plugin 
Javascript :: queryselectorall example 
Javascript :: jquery form submit 
Javascript :: jquery datepicker on multiple input fields 
Javascript :: localecompare javascript 
Javascript :: JS clickable checkbox 
Javascript :: js reverse linked list 
Javascript :: storage package npm react 
Javascript :: async function syntax 
Javascript :: javascript dom to image 
Javascript :: js push array into array 
Javascript :: how to remove last element of array in javascript 
Javascript :: javascript bind this to anonymous function 
Javascript :: segregate value by _ using jquery like explode 
Javascript :: random function in javascript 
Javascript :: parse date without timezone javascript 
Javascript :: pattern alphabet and space 
Javascript :: export component react 
Javascript :: how to update node in terminal 
Javascript :: Material-ui account tree icon 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =