I have a column in the data table called CurrentDate as datatype string (12/2/1983).
When I am displaying on the screen this is showing as 12/2/1983 12:00:00AM.
I am not sure why I am getting timestamp here?
Can anybody help me out?
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.
If you are binding this from a datasource, like a SQL Data Source, you can use CONVERT in your query:
If you need to do this in C#, try the ToShortDateString() method: