One way of many:
(Watch for syntax, typed in here)
---
DateTime inputDate = DateTime.ParseExact("12-11-2010", "dd-MM-yyyy",
new DateTimeFormatInfo());
int year = inputDate.Year;
DateTime firstDayOfYear = new DateTime(year, 1, 1);
---On Nov 4, 1:14 pm, "Mac.D" <[email protected]> wrote: > I need help in order to get the first month and day of a certain year > > eg datetime=12-11-2010 > > I need to get 01-01-2010
