buat form pada vb net, ambil 2 datetimepicker dan 1 textbox
contoh form
codingnya gan
Public Class Form1
Private Sub DateTimePicker1_ValueChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
DateTimePicker1.ValueChanged
Dim DateTimePicker1 As Date
Dim DateTimePicker2 As Date
Dim selisih As TimeSpan
DateTimePicker1 = Me.DateTimePicker1.Value
DateTimePicker2 = Me.DateTimePicker2.Value
selisih = DateTimePicker2.Subtract(DateTimePicker1)
Me.TextBox1.Text = selisih.Days
End Sub
End Class
dan hasil nya
gampang bukan …. silah kan do coba
Saturday, November 24, 2012
Mengurangi tanggal pada vb.net
Subscribe to:
Post Comments (Atom)
Terima Kasih banyak .. Sangat membantu & ditunggu postingan baru nya yang bermanfaat
ReplyDeleteKo sy tdk bsa pake handles,,??
ReplyDeletemakasih banyak, membantu banget . .
ReplyDeletemakasih banyak, membantu banget . .
ReplyDelete