Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i insert new record in database through front end, im not able to store birthdate in database.
Example:
Emp_Id: TextBox
Emp_NAme: TextBox
Emp_Add: TextBox
Emp_Birthdate: TextBox

Save

When i insert on save button its showing me as conversion failed. Please provide me a solution.
Posted
Comments
Sanjay K. Gupta 9-Nov-12 0:16am    
What is your date format?
Gautam Raithatha 9-Nov-12 0:32am    
in which format u enter date in textbox?

1 solution

use
C#
Convert.ToDateTime()
Method.
 
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