Forum Discussion
smcmickle
14 years agoContributor
Correct me if I am wrong, but I would think it would be as simple as:
var convertedDate = aqConvert.StrToDate(dateString);
edit::
Here is a much more specific example, comparing two dates, one which is converted from a string object.
var convertedDate = aqConvert.StrToDate(dateString);
edit::
Here is a much more specific example, comparing two dates, one which is converted from a string object.
function fromFuture() {
var myBirthday = "05/01/88";
var convertedDate = aqConvert.StrToDate(myBirthday);
var currentDate = aqDateTime.Today();
if(aqDateTime.Compare(currentDate, convertedDate))
{
Log.Message("You are not from the future!");
}
else
{
Log.Message("Mission:: Protect John Connor");
}
}