Mega Code Archive

 
Categories / C# / Date Time
 

DateTime ToString(ddMMyyyy hh

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlTypes; public class CommonUtility {     public static string FormatedDateTimeString(DateTime dateTime)         {             if (dateTime == SqlDateTime.MinValue.Value)                 return string.Empty;             else                 return .ToString("dd/MM/yyyy hh:mm");         } }