date

Parse a date in text format and transform it to the requested date format.
date($data , format = "%Y-%m-%dT%H:%M:%S" , lang = None ) : String
$data.date( format = "%Y-%m-%dT%H:%M:%S" , lang = None ) : String
Parameters
$data String | List

The input string or list in case of a list only the first detected date will be extracted and transformed.

format String

The desired output format: Python DateTime Format Codes

lang String

List or string of the source language code, if this parameter is not defined or is set to None then the language will be automatically detected: https://pypi.org/project/dateparser/#supported-languages-and-locales

Examples

How to parse and normalize a Date from a String