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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top