using System; using System.Collections; using System.Diagnostics; using System.Text; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; using System.IO; using System.Runtime.Serialization; using System.ComponentModel; using Sleis.Infrastructure; namespace Sleis.Utility { public static class HtmlUtility { private static readonly IPropertyPlaceholder _props; static HtmlUtility() { _props = SpringServiceProvider.GetService(); } public static string Format(DateTime? date) { if (date.HasValue) { return Format(date.Value); } else { return String.Empty; } } public static string Format(DateTime date) { return date.ToString(_props.Get("app.format.date.net")); } } }