First time posing on this forum. Need some help performing simple math with date functions in C#. Having problem with defining an integers value for search end span markers.
i.e.
EndSearch = today
BeginSearch = (today - 14 ).
I have tried using DateTime like this
DateTime EndSearch = new System.DateTime.Today().
DateTime BeginSearch = new EndSearch.DayOfYear - 14;
Not used to dealing with object oriented programming, have done mostly straight C.
Can any one point me to a good description on dealing with math computations with object oriented stuff.
Am at a complete loss.
Thanks in advance!