TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Goran Bibic
480
2.9k
198.2k
Setup default value if is datetimepicker in sql column null
Mar 24 2018 11:05 AM
Setup default value if is datetimepicker in sql column null
Exp
vrijemeodjaveDateTimePicker.Value = Convert.ToDateTime(string.IsNullOrWhiteSpace(vrijemeodjaveDateTimePicker.Text) ? emptydate : prijava_radnikaDataGridView.SelectedRows[0].Cells[
"dataGridViewTextBoxColumn3"
].Value);
Default value
private
DateTime emptydate = DateTime.Parse(
"2018-01-01 00:00:00"
);
Reply
Answers (
38
)
Datetimepicker selection changed
Remove min and max value datetimepicker