Newbie question about dates
Hi all
I'm just looking at some c# code for a mate of mine and have something weird going on.
I've put three TextBox controls onto an ASPX page for nDay, nMonth and nYear. In the code behind page load I've then got
DateTime deliveryDate = DateTime.Now;
DateTime deliveryDateFuture = deliveryDate.AddDays(1);
nDay.Text=convert.toString(deliveryDateFuture.day) ;
nMonth.Text=convert.toString(deliveryDateFuture.mo nth);
nYear.Text=convert.toString(deliveryDateFuture.yea r);
On my local this works as I'd expect and I get the three textboxes filled in. When I put the ASPX to the live website it gives me 3 empty boxes. I've checked the ASPX timestamps to make sure its FTP'd correctly
As a test I put nYear.Text=convert.toString(deliveryDateFuture);
this also works on my local but gives an empty box on the live site.
Am I doing something stupid?
Regards
Graham
|