data type datetime2 not accurate.

26 views
Skip to first unread message

Taufik

unread,
Feb 23, 2022, 7:28:01 PM2/23/22
to pymssql
Hello everyone,

I have problem about datatype in pymssql. when I read data with datetime2 data type the date showing not accurate. how to handle datetime2?

data:
2018-05-31 10:22:48.5012436 

result python:
datetime.datetime(2018, 5, 31, 10, 22, 48, 500000)

Thank you,
Taufik
Reply all
Reply to author
Forward
0 new messages