Here is another method using String.Format
DateTime todaysDate = DateTime.UtcNow; string dateString = String.Format("{0:dd/MM/yyyy}", todaysDate); Console.WriteLine("Date with Time: "+ todaysDate.ToString()); Console.WriteLine("Date Only : " + dateString); Output:
Date with Time: 9/4/2016 11:42:16 AM Date Only : 04/09/2016 This also works if the dateDate Time is stored in database.
For More Date and Time formatingformatting check these links:
Hope helps.