Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,
I am working on a datetimepicker control.
I have a condition where I want datetimepicker show null value in mssql database.
How could I that?
Thanx in advance.
neaS
Posted
Updated 29-Aug-11 19:36pm
v2
Comments
Prerak Patel 30-Aug-11 1:36am    
Use proper case.
neeraj24may 30-Aug-11 1:53am    
Actually i have two datetimepicker,one for employee date of joining and one for employee date of leaving. now when employee is active in the company, then its date of leaving should be null.this is from where problem starts.
i hope now you understand
Prerak Patel 30-Aug-11 2:01am    
I have already answered you. Did you try any of them?
Sergey Alexandrovich Kryukov 30-Aug-11 1:44am    
Not clear. You can of course use a nullable type System.DateTime?, but DateTimePicker works with non-nullable structure System.DateTime and does produce null time -- what would be the sense is selecting of such value?
--SA
neeraj24may 30-Aug-11 1:53am    
Actually i have two datetimepicker,one for employee date of joining and one for employee date of leaving. now when employee is active in the company, then its date of leaving should be null.this is from where problem starts.
i hope now you understand

1 solution

 
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