How do we compare two date strings in vba, like "01.02.2013 < 02/02/2013"? Whatever the dates are this always showing true. And two date formats are correct in the example i menioned.
Below vba code throws error.
Sub aa()
Dim a As Variant, b As Variant, c As Variant
a = Format("1.2.2012", "DD\/MM\/YYYY")
b = Format("2.2.2012", "DD\/MM\/YYYY")
MsgBox (a)
End Sub