hi ,
i had textbox which is used to enter datetime . in the database, the data type is date/time. now my requirement is when the textbox is empty. i want 2 store a default value. which value is suitable for datetime.
i had given as follows
if textbox12.text = "" then
textbox12.text = 5/5/2000 ---- it is storing this value.
end if
but if i want 2 update this date means it is not supporting . if i select current date using calender it was saved as 12/30/1899.
can anyone help me.
regards
m.arunachalam
You can trytextbox12.Text = DateTime.Today
No comments:
Post a Comment