var formatted = DateTime.Now.ToString("MMM yyyy");
DateTime dt = DateTime.Parse("2/1/2011 12:00:00 AM"); string date = dt.ToString("MMM yyyy");
from Code behind, string dt=DateTime.Now.ToString("dd MMM yyyy"); from Database,- getdate()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)