I have a String which might take the form of the following:
- dd/MM/yyyy - dd/MM/yyyy
- dd/MM/yyyy to dd/MM/yyyy
- dd-MM-yyyy - dd-MM-yyyy
- dd-MM-yyyy to dd-MM-yyyy
- 10 December 2016 to 20 March 2017
- em-dash without spaces etc.
and so on with various permutations accounting for typo, various spaces etc. With minimal hardcoding, how do I write a function to extract and return a two element array of DateTime/Date where the first is the start date and the second is the end date? Most important is to just grab any dates which the function can detect