public static string ToLongDateTimeString(DateTime dtm) { if (WfDateTime.IsUnAssigned(dtm)) { return("UnAssigned"); } return(dtm.ToLongDateString() + " " + dtm.ToLongTimeString()); }
public static bool TryParse(string s, out WfDateTime result) { DateTime dtm; bool ret = DateTime.TryParse(s, out dtm); result = (WfDateTime)dtm; return(ret); }
public WfDateTime(DateTime dateTime) { if (WfDateTime.IsUnAssigned(dateTime)) { return; } this._dtm = dateTime; }
public static bool IsUnAssigned(WfDateTime wfdtm) { if (wfdtm._dtm <= new DateTime(1900, 1, 1)) { return(true); } else { return(false); } }
public string ToXmlString() { return(WfDateTime.ToXmlString(this)); }
public string ToLongFileSystemString() { return(WfDateTime.ToLongFileSystemString(this)); }
public string ToLongDateTimeString() { return(WfDateTime.ToLongDateTimeString(this)); }
public string ToShortDateTimeString() { return(WfDateTime.ToShortDateTimeString(this)); }
public static WfDateTime StartOfMonth(WfDateTime wfdtm) { return(new WfDateTime(new DateTime(wfdtm._dtm.Year, wfdtm._dtm.Month, 1, 0, 0, 0))); }
public static bool Equals(WfDateTime wfdtm1, WfDateTime wfdtm2) { return(wfdtm1.Equals(wfdtm2)); }
public static int Compare(WfDateTime wfdtm1, WfDateTime wfdtm2) { return(wfdtm1.CompareTo(wfdtm2)); }
public static string ToXmlString(WfDateTime wfdtm) { return(WfDateTime.ToXmlString(wfdtm._dtm)); }
public static string ToLongFileSystemString(WfDateTime wfdtm) { return(WfDateTime.ToLongFileSystemString(wfdtm._dtm)); }
public int CompareTo(WfDateTime other) { return(this.CompareTo((object)other)); }
public static bool TryParse(string s, IFormatProvider provider, System.Globalization.DateTimeStyles style, out WfDateTime result) { DateTime dtm; bool ret = DateTime.TryParse(s, provider, style, out dtm); result = (WfDateTime)dtm; return(ret); }
public static WfDateTime EndOfDay(WfDateTime wfdtm) { return(wfdtm.StartOfDay().AddDays(1)); }
public bool Equals(WfDateTime other) { return(this.Equals((object)other)); }
public static WfDateTime EndOfMonth(WfDateTime wfdtm) { return(wfdtm.StartOfMonth().AddMonths(1)); }
public static string ToShortDateTimeString(WfDateTime wfdtm) { return(WfDateTime.ToShortDateTimeString(wfdtm._dtm)); }