Display date as mm-dd-yy (without century)
Hi,
Is there a way to customize format of shortdate in asp.net? I would like to display the date as mm-dd-yy, the year without the century.
I have tried
String.Format("{0:mm/dd/yy}", myDateVar)
but still, it displays year in four digits as yyyy.
Thanks in advance.
|