Hello,
Python being such a rich language, I was wondering if it provides a ready-to-use function to extract juste the date from a whole timestamp instead of using a regular expression:
Thank you.
Python being such a rich language, I was wondering if it provides a ready-to-use function to extract juste the date from a whole timestamp instead of using a regular expression:
#Thu, 10 Nov 2022 18:15:41 +0000 pattern_pubDate = re.compile('(\d{2}) (\w+?) (\d{4})') … m = pattern_pubDate.search(link.pubDate.string) if m: pubDate = m.group(0)I'm only interested in the date.
Thank you.