(its in c#)
DateTime maxDate = DateTime.Now;Does this work?
maxDate.AddDays(-1);
// results in no days subtracted, still shows current day. arrrgh.
DateTime maxDate = DateTime.Now;
maxDate.Subtract( new TimeSpan( 24, 0, 0) );
Try: maxDate = maxDate.AddDays(-1);
0 comments:
Post a Comment