Sixthsense Sixthsense - 1 year ago 58 Question

ToShortDateString is resulting Time also. How to show Date Only?

DateSerial(2015, 5, 1).ToShortDateString

is resulting 01-05-15 12:00:00 AM.

How do I Get it as 01-05-15?

Using it on GridView Control

Answer Source



(for explicit format, switch dd and MM according what you wish in first : day or month) or


(culture dependant).

See here for examples :

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download