0

How to convert Microsoft Excel date format to datetime format using QGIS?

In example: 43089 in MS Excel is 2017年12月20日.

asked Mar 17, 2021 at 7:13

1 Answer 1

2

Use this code in field calculator (replace date_field_name_in_MS_Excel_format to your date field name):

to_datetime('1900-01-01 00:00:00') + (to_string("date_field_name_in_MS_Excel_format" - 2) +' day')
answered Mar 17, 2021 at 7:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.