Date format in texbox

  • Thread starter Thread starter crop
  • Start date Start date
C

crop

how i can change a date format binded to textbox?
i have '2005-01-01 00:00:00' and i wont have only '2005-01-01'
what i must do?
 
Hi,
You can format the string.

string dtDBdate
dtDBDate = dbValue.toString("yyyy-MM-dd");

Regards,
Sambathraj
 
Back
Top