troubleshooting Question

Databound Datetimepicker does not save default to database

Avatar of insuremce
insuremce asked on
.NET ProgrammingVisual Basic.NETEditors IDEs
5 Comments2 Solutions1086 ViewsLast Modified:
Hi Experts,

I have a databound DateTimepicker on my form.  If I select a date and save the record it works ok but if I dont select a value (i.e leave the default date)  in nothing is saved to the database.

A previous question i found describes how to set the datetimepicker to blank, how can I set the selected value to automatically save to the database as the current date? - If the default value of the datetimepicker is acceptable, I do not wish the user to have to click it for it to be saved to the database, should it be unnacceptable it would be down to the user to change it to the correct date.

Thanks,
Adam
ASKER CERTIFIED SOLUTION
insuremce

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros