added get date function in helper

added get date function in helper