Fixed a bug when using date variables with hyphens in setting due or start dates