Shunde.NET Framework Class Library

TextUtils.GetFriendlyDate Method 

Gets the textual representation of a date in a "friendly" format, using the specified month and year formats. If the time is not midnight, then the time is included

public static string GetFriendlyDate(
   DateTime date,
   String monthFormat,
   String yearFormat
);

See Also

TextUtils Class | Shunde.Utilities Namespace