Take the following two examples:
Date.parse("02/20/2009")
Date.parse("02-20-2009")
In the first example, the order is considered MM DD YYYY, but in the second example an error occurs because (I assume) he is trying to parse it as DD MM YYYY.
Why?
source
share