How to show only date or time in .net mvc (datetime.now)?
Use this to show date or time as you want?
var dateTimeNow = DateTime.Now; // Return 00/00/0000 00:00:00
var dateOnlyString = dateTimeNow.ToShortDateString(); //Return 00/00/0000
Regards:Zaif Ullah
Share This with your friend by choosing any social account