Hi to all,
I'd like to set initial value to DateTimePicker Control
programmatically, How I can do that?
I had tried following:
1. DataTable dt = dataLayer.GetOffer(OfferID);
this.dtpOfferDate.Value =
Convert.ToDateTime(dt.Rows[0][6].ToString());
2. I tried:
this.dtpOfferDate.Value = Convert.ToDateTime(dt.Rows[0][6]);
It doesnt works too, shows only current date...
On the same time, for text box works fine...
this.txtOfferDate.Text = dt.Rows[0][6].ToString();
Please help. Thanks in advance good people