I came across this line in the code of the Asp.Net website I support, I think it sums up my daily battle against The Application.
int pos = (int)Math.Floor(((TimeSpan)(row.Maturity.Subtract(DateTime.Today))).Days / 7.0);
I came across this line in the code of the Asp.Net website I support, I think it sums up my daily battle against The Application.
int pos = (int)Math.Floor(((TimeSpan)(row.Maturity.Subtract(DateTime.Today))).Days / 7.0);