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

Recommended Answers

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 …
Jump to Post

All 2 Replies

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

thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.