DateTime Format

format(expression,format string)

e.g.

VB.NET:
format(now,"dd MM yyyy")
That looks like it's straight out of a VB6 app. ;)
VB.NET:
Date.Today.ToString("ddMMyyyy")
 
What is the best method for converting date to "ddMMyyyy" format?

You mean converting a date into a string representation of the date, in ddMMyyyy? Use Mr McIlhinney's code

Additionally, if your "date" is actually a string type to start with, you will need to use Date.ParseExact or Date.TryParseExact to convert it to a date type first
 
Back
Top