|
Public Class Form1
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
CompositeDateTimeControl1.DateTimeValue = New Date(0L)
End Sub
Private Sub btnGet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGet.Click
txtDate.Text = CompositeDateTimeControl1.DateTimeValue.ToString("dd-MMM-yyyy hh:mm tt")
End Sub
Private Sub btnSet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSet.Click
Date.TryParse(txtDate.Text, CompositeDateTimeControl1.DateTimeValue)
End Sub
End Class
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have been developing applications at City of Moncton since 1992. My focus is on C# forms and web development, along with DB design.