I have a date in mm/dd/yyyy format. But, depending on what day or month, there is no guarantee that the mm/dd part will necessarily have two digits. So the dates may be:
11/12/2014
or
6/12/2014
or
11/5/2014
In all of the above situations I will need to be able to extract each value for mm
, dd
, and yyyy
so I can do something like this for a calculation:
Month = regex that returns month part.
Day = regex that returns day part
Year = regex that returns 4 digits year part.
This d{2}/d{2}/d{2}
matches the whole thing.