updated view helper to use date instead of datetime