fix issue#25: termninal mode: > date is off by one month

use "toDateString" javascript function instead