Re: [02/03] Comparing values
You compare Date objects using the Date.Compare method. Obviously you have to convert the string retrieved from the registry into a Date object first. This means that you should decide on a specific format and use it to convert the original date to a string in the first place:
VB Code:
Dim regValue As String = myDate.ToString("d/MM/yyyy")
and then use that same format when convert from a string back to a date:
VB Code:
Dim myDate As Date = Date.ParseExact(regValue, "d/MM/yyyy", Nothing)