finishing form with datetime functionality