Hi,
I'm trying to do this :
But after 23:59:59, label1.text doesn't change to the next day.Code:Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If DateTime.Now.ToString("dddd") = "Sun" Then Label1.Text = "Sun" ElseIf DateTime.Now.ToString("dddd") = "Mon" Then Label1.Text = "Mon" ElseIf DateTime.Now.ToString("dddd") = "Tue" Then Label1.Text = "Tue" ElseIf DateTime.Now.ToString("dddd") = "Wed" Then Label1.Text = "Wed" ElseIf DateTime.Now.ToString("dddd") = "Thu" Then Label1.Text = "Thu" ElseIf DateTime.Now.ToString("dddd") = "Fri" Then Label1.Text = "Fri" ElseIf DateTime.Now.ToString("dddd") = "Sat" Then Label1.Text = "Sat" Else Label1.Text = Nothing End If End Sub
any suggestions ?


Reply With Quote


