calepin-date function added