We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,374 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Saving picked value in DateTimePicker

hi,
How to save the long format DateTimePicker in mysql?

2
Contributors
2
Replies
19 Hours
Discussion Span
5 Months Ago
Last Updated
3
Views
Question
Answered
monching
Junior Poster in Training
68 posts since Oct 2010
Reputation Points: 13
Solved Threads: 1
Skill Endorsements: 0

Is this a question about the DateTimePicker or about MySQL? If it's the former then the control has a Value property that gives you the stored DateTime object. You can then get the long format as a string and save it to MySQL:

Dim longdate As String = dateTimePicker1.Value.ToLongDateString()

' Save longdate to MySQL
deceptikon
Challenge Accepted
Administrator
3,457 posts since Jan 2012
Reputation Points: 822
Solved Threads: 473
Skill Endorsements: 57

thank you!

monching
Junior Poster in Training
68 posts since Oct 2010
Reputation Points: 13
Solved Threads: 1
Skill Endorsements: 0
Question Answered as of 3 Months Ago by deceptikon

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0586 seconds using 2.65MB