You mention in the comments to one of the other answers that you are taking input from the web.
In that case you can control the date format that is being submitted by restricting user input to
Then it doesn't matter what your locale settings are, you'll get the date the user intended.