DateTime.Now.ToString("dd/MM/yy")
But you need to remember that it is ToShortDateString()sensitive to culture, returning different lines depending on the regional settings of the computer - above this is not so.
You can change the settings on your computer, in Windows 7, you will find the short date format under Region and Languagethe control panel.
source
share