GetDate

public static class ExtensionMethod
{
public static DateTime GetCurrentDate(this object source)
{
return DateTime.Now;
}
}
Example:
object anything = new object();
DateTime date = anything.GetCurrentDate();

Description

Return the current date and time

Details

Double click on the code to select all.

 

;