Parse date string on client side

Note that parameter self is not being used. If you remove it, then your parse_date becomes a simple, ordinary (non-member) function. It does not have to be part of a class (or class instance) in order to work.