alias timeask {
var %a = $ctime($1)
if !%a { echo -a Invalid parameters: $1 }
elseif $asctime(%a,ddmmyyyy) == $asctime(ddmmyyyy) { echo -a $1 is today }
elseif %a < $ctime { echo -a $1 is in history }
else echo -a $1 is in the future
}
Edit: oops, as usual I was too long in preview mode. Collective's method is the same, I'd only add that $ctime() accepts formats like 9.11.2003 09.11.2003 9.11.03 09.11.03 9/11/2003 9/11/03 09/11/03 My method allows all these formats since it doesn't compare the raw input (which can vary) with $date (which is a fixed format), but transforms it in $ctime value and then back to $asctime.