Posted By

krisdb on 04/21/09


Tagged

c-sharp


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


IsArchived


 / Published in: C#
 

  1. /// <summary>
  2. /// returns true/false if date passed in is before today's date
  3. /// </summary>
  4. /// <param name="DateToCheck">Date to check</param>
  5. /// <returns></returns>
  6. private static bool IsArchived(DateTime DateToCheck)
  7. {
  8. if ((DateToCheck < DateTime.Now) && (DateToCheck != DateTime.MinValue))
  9. return true;
  10. else
  11. return false;
  12. }

Report this snippet  

You need to login to post a comment.