How to convert date from one format to another?

前端 未结 4 935
温柔的废话
温柔的废话 2021-01-28 12:26

I\'m having the date in this format in a Excel worksheet 03-Dec-10. So its not compatible while inserting it into the database. How to convert the date to the acceptable format?

4条回答
  •  旧巷少年郎
    2021-01-28 12:49

    If you're doing this from Excel itself, you can put this formula into another column

    =TEXT(A2, "YYYYmmdd")
    

    Then copy down. This produces a compatible 8-digit date.

提交回复
热议问题