I agree with @Darren_Murphy
the best way is convert dates to strings or integers and avoid format problems (the advice is almost mandatory if you use a non-US date format )
The trick to convert a date to string/integer is something like this:
Saludos!