Added the getWorkDate and setWorkDate functions