Gillard-
I think that you would in future start refactoring your code a little bit
as you are ready.
I did it in a way now for you (just by hand).
Module Module1
Sub Main()
Try
'To make it testable. The notation is in European non ISO
notation
Dim day = CDate(Now.ToString("dd-MM-yyyy"))
Dim num = day.DayOfYear
If num < New DateTime(day.Year, 3, 21).DayOfYear Then
Console.WriteLine("Hiver")
ElseIf num < New DateTime(day.Year, 6, 21).DayOfYear Then
Console.WriteLine("Printemps")
ElseIf num < New DateTime(day.Year, 9, 21).DayOfYear Then
Console.WriteLine("Eté")
ElseIf num < New DateTime(day.Year, 12, 21).DayOfYear Then
Console.WriteLine("Automne")
Else
Console.WriteLine("Hiver")
End If
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
Console.ReadLine()
End Sub
End Module
///
-Cor