Click here to Skip to main content
15,889,595 members
Articles / Programming Languages / Visual Basic

First day date in week based on particular date

Rate me:
Please Sign up or sign in to vote.
3.50/5 (3 votes)
6 Dec 2010CPOL 6.6K   2  
public DateTime GetFirstDayOfWeek2( DateTime date) { return date.AddDays(-(int)date.DayOfWeek); }

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) University of Iowa Hospitals and Clinics
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions