: Culture, GregorianCalendar , Soner Gönül .
DateTime , Year 2558 2015.
DateTime , gregorian calendar. :
buddhistCalendar.ToDateTime(2558,5,22,0,0,0,0) != new DateTime(2558,5,22,0,0,0,0)
buddhistCalendar.ToDateTime(2558,5,22,0,0,0,0) == new DateTime(2015,5,22,0,0,0,0)
If you want to get the year or any other value set DateTimefor a specific calendar, use the appropriate form of the method, in the calendar, like calendar.GetYear(dateTime).
Otherwise you will receive
new DateTime(2558,5,22,0,0,0,0).Year == 2558
and
buddhistCalendar.GetYear(new DateTime(2558,5,22,0,0,0,0)) == 3101