I need to compare 2 dates that are stored in variables. The problem I am having is that the first date is stored in a Date type variable, the 2nd is stored in a string type variable. The reason the 2nd date is in a string type variable is because it is pulling the date from a different application and is stored as a string in that application.
Here is the line of code that I am comparing.
dim t_date as date
dim cl_date as string
If t_date < cl_date then
Basically, I need to convert cl_date variable to a date type variable so that I can compare the 2 dates.
The format of t_date is 0/00/0000 and the format of cl_date is 00/00/0000.
any help with this is greatly appreciated
Here is the line of code that I am comparing.
dim t_date as date
dim cl_date as string
If t_date < cl_date then
Basically, I need to convert cl_date variable to a date type variable so that I can compare the 2 dates.
The format of t_date is 0/00/0000 and the format of cl_date is 00/00/0000.
any help with this is greatly appreciated