beginning date of a week

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI
I would like to know if there is any method to find the beginning date of a week starting from a week number
For the week number 13 i would like to know which date (short) is on his first day.
 
I think the functionallity provided by DateTime structure should be enough
for this.

You can construct DateTime as myDate = new DateTime(Year, 1, 1). Use
myDate.AddDays method to add the (weekNo -1) * 7 to you year initial date.
That will represent the beginning date of the week. After that you can get
the day of the week as an enumeration (0 - 7) via myDate.DayOfWeek.

Hope this helps.

Orlin

www.ppstec.com


Fabrizio said:
HI,
I would like to know if there is any method to find the beginning date of
a week starting from a week number.
For the week number 13 i would like to know which date (short) is on his
first day.
 
Back
Top