Answers for "date regex"

4

dd.mm.yyyy pattern regex

^([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0]?[1-9]|[1][0-2])[./-]([0-9]{4}|[0-9]{2})$
Posted by: Guest on December-17-2020
1

regex valid day

/^(0[1-9]|[12]d|3[01])$/
Posted by: Guest on June-02-2020
0

use regex to make sure it is a date

^[0-3]?[0-9]/[0-3]?[0-9]/(?:[0-9]{2})?[0-9]{2}$
Posted by: Guest on November-06-2020
0

regex datetime

d{4}-[01]d-[0-3]dT[0-2]d:[0-5]d:[0-5]d(?:.d+)?Z?
Posted by: Guest on July-20-2020
0

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})$
Posted by: Guest on December-22-2020
0

regex data

//all types, only number

^(?:(?:31(/|-|.)(?:0?[13578]|1[02]))1|(?:(?:29|30)(/|-|.)(?:0?[1,3-9]|1[0-2])2))(?:(?:1[6-9]|[2-9]d)?d{2})$|^(?:29(/|-|.)0?23(?:(?:(?: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])|(?:1[0-2]))4(?:(?:1[6-9]|[2-9]d)?d{2})$|(?:(?:1[6-9]|[2-9]d)?d{2})(/|-|.)(?:(?:0?[1-9])|(?:1[0-2]))5(?:0?[1-9]|1d|2[0-8])$|^(?:(?:(?:1[6-9]|[2-9]d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(/|-|.)0?26(29)$|^(?:(?:1[6-9]|[2-9]d)?d{2})(?:(?:(/|-|.)(?:0?[1,3-9]|1[0-2])8(?:29|30))|(?:(/|-|.)(?:0?[13578]|1[02])9(?:31)))$

//all types month = text (pt)

^(?:(?:31(/|-|.)(?:jan|mar|mai|jul|ago|out|dez))1|(?:(?:29|30)(/|-|.)(?:(?:jan|mar|abr|mai|jun|jul|ago|set|out|nov|dez)2)))(?:(?:1[6-9]|[2-9]d)?d{2})$|^(?:29(/|-|.)(?:fev)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])(/|-|.)(?:jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)4(?:(?:1[6-9]|[2-9]d)?d{2})$|^(?:(?:1[6-9]|[2-9]d)?d{2})(/|-|.)(?:jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)5(?:0?[1-9]|1d|2[0-8])$|^(?:(?:(?:1[6-9]|[2-9]d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(/|-|.)(?:fev)6(29)$|^(?:(?:1[6-9]|[2-9]d)?d{2})(?:(/|-|.)(?:(?:jan|mar|abr|mai|jun|jul|ago|set|out|nov|dez)8(?:29|30))|(?:(/|-|.)(?:jan|mar|mai|jul|ago|out|dez)9(?:31)))$
Posted by: Guest on August-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language