added static function in ApplicationModell for converting from string to datetime. + more changes.