with this frankly mickey mouse idea.
There's only two ways a compiler can tell what you mean by #6/7/2005#. It either uses the current locale in which case your code may break when you change the date format. Or it uses a fixed internal format in which case your date literals in code are different to what you expect and you confuse the hell out of everybody.
Of course the latter would not have been a problem if they'd used CCYYMMDD as the fixed default because that is totally unambiguous and entirely independant of locale.
So my recomendation for this tip, don't use it unless you're american writing source that will only ever be available in america.
Not knocking my colonial cousins just the parochial dimwit who put this facility in the language.
Discussion on:
Message 2 of 18

































