2
I have a function that returns data in JSON and places in certain places with jQuery. One of these data is a text that contains a period of dates (Beginning and end).
Example of returned text:
ESPÍRITO SANTO - State: This is how much the Brazilian has paid of taxes in the period from 01/01/2014 to 11/03/2014
In the above case I want to return only these two dates, 01/01/2014 and 11/03/2014.
I have seen several examples in javascript of capturing texts between defined characters, but not of capturing a text format (in the case of a date) and returning only that there.
So is there any way I can return only these two dates? What function should I use?
The format is always
dd/mm/aaaa
?– bfavaretto