Click here to Skip to main content
16,020,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have combobox it get data from sql and it is use for get datetime.but it hase format mm-dd-yyyy bt i want to change it like dd-MMM-yyyy so how can i change it
Posted

1 solution

If you type a . after your object, intellisense will list all the methods of that object. That's coding 101. You will find methods in there to return the format you want. If you don't, then google can magically search the entire internet, but msdn.microsoft.com is the Microsoft documentation, and it will explain the ToString overloads that will help you to format the date.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900