Can we set null to a date field.
Reply
![]() |
|
From:
![]() meetjayblack
|
You can't have NULL value assigned to a DateField all you do is you can set some Value like 01/01/0001 as a NULLDATE reference and then interprete this value as NULL. If you are working on Windows Forms Control - DateTimePicker Control then it'll be a painfull stuff. to assign NULL to it but you can create a DateTimePicker Control of your own to have a work around where all you need to do is to have a TextBox painted over the DateTimePicker control so that whenever you pass NULL to the Control it'll display "" in the TextBox field where as the internal Value of the underlying DTP Control will be something like 01/01/0001. If you need more info or some snippet then ping me..... Cheers!! Jay |
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|
- Re: Can we set null to a date field. dotNET User Group Hyd
-