1,105,447 Community Members

Saving picked value in DateTimePicker

Member Avatar
monching
Junior Poster in Training
68 posts since Oct 2010
Reputation Points: 3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
deceptikon
Eternally Awesome
4,696 posts since Jan 2012
Reputation Points: 1,341 [?]
Q&As Helped to Solve: 689 [?]
Skill Endorsements: 104 [?]
Administrator
Featured
 
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
Member Avatar
monching
Junior Poster in Training
68 posts since Oct 2010
Reputation Points: 3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

thank you!

Question Answered as of 1 Year Ago by deceptikon
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article