I am in trouble. I have an requirement where I need to sort date values using VB script but I couldn't find the way how to do it.
My Sample code is below:
Option Explicit
Dim Date1,Date2
Date1=#9/14/2012 1:15:20 AM#
Date2=#9/15/2012 2:36:49 PM#
If Date1>Date2 Then
MsgBox("Hi")
Else
MsgBox("Hello")
End If
But the above code is not producing correct message when I ran it. Can any one help me here?