i have a combobox which is displaying date from database…in my database the date enteries are in the format of mm/dd/yyyy but i want to display them in the format of dd-mm-yyyy…in that combobox..when the application run.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can either convert the format of your date before you load them to the combo box or run this code after the combobox have been filled:
Edited:
If your are using databinding and sure that the type of data being displayed is date. Try this: