Difference between Format() and DateTime.Parse
-
Hi! I'm bit confused about Format() (vb6 function) and DateTime.parse function for formatting a date. i.e when to use which function. Someone please help me in getting this clear. Thanks!
Don't Quit
NEVER use VB6 functions. DateTime.Parse does not format dates, it tries to get a date out of a string. Use the ToString method, you can pass a format string as an argument to turn a date into any string format you like.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )