added date function for entryform