Date subclass - how to pass through as parameter - ParseDate

If subclassing a date how can I pass the subclassed date as a parameter of the ParseDate function? I keep getting an error on compilation, the compiler doesn’t like it.

I couldn’t find anything in the LR regarding this.

You could use ParseDate with a vanilla Date object, and call the Date.Constructor(CopyDate As Date) method on your subclass (which it inherits from the Date class):

   Dim d As Date
   If ParseDate("11/10/1991", d) Then
      Dim MyCustomDate As New CustomDate(d) 'assuming CustomDate is the subclass' name
   End If

Thanks Andrew, seems like this will be my approach.