DateTime dt = DateTime.Now dt.Date is created to 31.10.2012 00:00:00 .it is created to dd.mm.yyyy format but i need dd/mm/yyyy. Can i use: return new DateTime(d.Year, d.Month
Just the way to convert to string, DateTime itself has no format:
DateTime
var result = DateTime.Now.Date .ToString("dd/MM/yyyy", CultureInfo.InvariantCulture);