'Declaration Public Overloads Overridable Function FormatDateRange( _ ByVal start As Date, _ ByVal end As Date, _ ByVal relativeDate As Date, _ ByVal includeStart As Boolean, _ ByVal includeEnd As Boolean _ ) As String
public virtual string FormatDateRange( DateTime start, DateTime end, DateTime relativeDate, bool includeStart, bool includeEnd )
Note: If the start and end times are on the same day as the RelativeDate then only the time portion is returned in the formatted string. Otherwise the short day of week is also included and if the span between the start and end is 7 days or greater then the date is included as well.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2