Created
April 11, 2010 18:16
-
-
Save MACSkeptic/362949 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... see http://github.com/MACSkeptic/MACSkeptic.Commons | |
public static DateTime DaysAgo(this int days) | |
{ | |
return days.DaysAgo(DateTime.Now); | |
} | |
// ... see http://github.com/MACSkeptic/MACSkeptic.Commons | |
// usage | |
2.DaysAgo(); // DateTime.Now - 2 days ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment