I use textbox to store "date of birth" to profile, it is fine:
But when I edit profile from edit page, it display the date time as belows:
"20/03/1977 0:00:00" in textbox, how can I remove "0:00:00 " and only display "dd/MM/yyyy"
the code as belows:
save to profile
Profile.DateOfBirth = DateTime.Parse(txtDateOfBirth.Text);
***sure not input "0:00:00" to the textbox
retrieve from profile
txteDateOfBirth.Text = Profile.DateOfBirth.ToString();
actually display "20/03/1977 0:00:00"
...
Go to the complete details ...