- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
The RWTF is locale settings.
Admin
Replace(MyDate, "/", "-")
Voilà
Admin
My [over-simplified] comment caused two pages of debate. Excellant. My work here is done. If it wasn't obvious, the intent was to wake up the americans who think d/m/y is just plain wrong (of whom there seem to be many), and watch as they split hairs trying to invalidate it. So, congratulations, you're not the only ones who use m/d/y, there are also a couple of tiny places no-one cares about too. Happy?
Admin
But this one goes to 11
Admin
But then, sniff, it's India, sniff, that uses the least, sniff, WTFy date format! Booooohoooooohoooohoooohoooo! what a shame for the rest of the world.
Admin
OMg, I used this exactly method back in high school
Admin
Well this guy obviously doe not like libraries :) He prefers to do things on his own. Seems like someone who just started to learn a new language and deciding to write more code instead of doing a "little research". Anyway I suppose this is somewhat creative... just look at how he makes sure it will work by using 1, 100 and 10000. He knows that 1, 10 and 100 would not work :-P
Admin
Admin
Does Africa not use dates? Holy crap, Wikipedia.
Admin
Kinda funny... looks like C++ to me. In C++, return 0; immediately terminates an application. Not sure what kinda exception he's trying to catch after the program is terminated...
}
Admin
Admin
No, "D7->" is an easier key sequence for the retarded than "dd".