implemented local date test