DateTime.Now.ToString("MM/yyyy");// will display 02/2015 DateTime.Now.ToString("dd/yyyy");// will display 21/2015 DateTime.Now.ToString("dd/MM");// will display 21/02
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)