Adding getDate Function in Example. Fixes #1