Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to store joining date in database like 01-12-2014 only..i don't want to store date like
2014-12-01 00:00:00


while inserting iam giving like 01-12-2014 but it stored like 2014-12-01 00:00:00

please help me

thanking you
Posted
Comments
TrushnaK 25-Jul-14 3:48am    
change database datatype from datetime to date..
u mani 25-Jul-14 5:42am    
if u change datatype datetime to date also the date will saved like(yyyy-mm-dd) this only in database

1 solution

Change the datatype to date of that field in database.
Check details of data type in this link:

http://msdn.microsoft.com/en-IN/library/ms186724.aspx#DateandTimeDataTypes[^]

Hope this helps you :)
 
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