Ok, what I basically need is to be able to display yesterday's date... is there not a simple way of doing this?
example:
TextBox.Text = Today() -1
just today's date minus 1 day (the above doesn't work)
anyone?
Printable View
Ok, what I basically need is to be able to display yesterday's date... is there not a simple way of doing this?
example:
TextBox.Text = Today() -1
just today's date minus 1 day (the above doesn't work)
anyone?
Code is C#, but try this:
Code:DateTime.Today.AddDays(-1).ToLongDateString();