How about

DateTime firstDayOfYear = new DateTime(DateTime.Now().Year, 1, 1)

?

First month and day of a year is always January 1st

In my example, I am getting the year of the current date, but you
could also parse your date and get the year from that as well.



On Nov 4, 4:14 am, "Mac.D" <depanyekg...@gmail.com> 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

Reply via email to