Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i cant store the value from datetime picker to database as "datetime" datatype.
but i can store it as nvarchar(MAX) ..
WHY?
Posted
Comments
[no name] 17-May-13 1:16am    
Less information..please provide some piece of code for more clearance...
Aarti Meswania 17-May-13 1:18am    
what you tried? post your code here...

1 solution

Dear Friend,

I think you are saving the Date value in "dd/MM/yyyy" type.

Try to store it in "MM/dd/YYYY" format. As in "dd/MM/yyyy" format SQL Server considers it as a string that is the reason you are able to store the data in nvarchar(MAX).

Thanks & Regards

Varun Sareen
 
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