Try
DateTimePicker1.Format = DateTimePickerFormat.Custom
' Display the date as "2012-10-24 21:47:09".
DateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm:ss"
strQuery = "INSERT INTO TimeClockInfo(IdTimeClock, First_Name, Last_Name, LogTime, In_Out) VALUES('" & AddTimeEmplyIdBox.Text & "','" & AddTimeEmplyFNBox.Text & "','" & AddTimeEmplyLNBox.Text & "','" & DateTimePicker1.Value & "','in')"
SQLCmd = New MySqlCommand(strQuery, dbCon)
dbCon.Open()
SQLCmd.ExecuteNonQuery()
dbCon.Close()
MsgBox("TimeClock Data Added Successfully!")
Catch ex As Exception
MsgBox("Failure!", ex.Message)
End Try
これは、valueプロパティの日付と時刻の元の形式を返しますか?私はここで何が間違っているのですか?