how can i convert date to a number with vb.net

example in vb6:

Private Sub Form_Load()
Text1.Text = Date
End Sub
Private Sub Command1_Click()
Dim num
num = Format(Text1.Text, "0")
Text2.Text = num
End Sub


thanking you in advance

From:
[email protected]