'How to extract date from a string?
I have this weird string:
'": "1899-12-30 14:50:00.000"": " "'
I need to just extract the date. I have looked at all the different python string manipulation functions but I just can't seem to find one that works for this interesting format.
Thanks
Solution 1:[1]
What about this solution:
mys = '": "1899-12-30 14:50:00.000"": " "'
print(mys.strip('": "'))
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Thomasi Muc |
