Saving picked value in DateTimePicker
hi,
How to save the long format DateTimePicker in mysql?
Related Article: DateTimePicker Value Change Year Only
is a VB.NET discussion thread by GAiXz that has 3 replies, was last updated 1 year ago and has been tagged with the keywords: datetimepicker, vb.net.
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
3,457 posts since Jan 2012
Reputation Points: 822
Solved Threads: 473
Skill Endorsements: 57
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