FYI: FormatDateTime still exists in VB.NET (just like VB6) and is in the Microsoft.VisualBasic Library.
Also, the Date Class has methods to print out only the Date in different formats.
Yet another way is to use the "d" formatter in the ToString method
And a forth way, because it wouldn't be fun without 10,000 ways to do the same thing is to pass in something like "mm/dd/yyyy" to the ToString Method
;)
If you'd like to encapsulate this formatting process when using DataBinding, you can consume the Format Event of the DataBinding Class. |