'DateTime format in python from Postgres queries
I have a below result from postgres query performing in python.
(datetime.datetime(2022, 3, 22, 15, 18, 17, 677821, tzinfo=psycopg2.tz.FixedOffsetTimezone(offset=0, name=None)),)
How can parse or format so I get date along with time only ?
Solution 1:[1]
Problem is solved by using result[0][0] in pyhton code
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 | Deepak Gupta |
