Find and replace with reordered date format in notepad++

后端 未结 4 1894
失恋的感觉
失恋的感觉 2021-01-31 04:16

I have a file with a few thousand rows to be added to a MySQL database. There are date values in the rows which are in the dd-mm-yyyy format but I need them to be in the yyyy-mm

4条回答
  •  失恋的感觉
    2021-01-31 05:08

    Used Notepad++ to change mm/dd/yyyy to yyyy/mm/dd in several lines of a text file. Script was saved as a macro for next file.

    Find: ([0-9]{2})/+([0-9]{2})/+([0-9]{4}) Replace: \3/\1/\2

提交回复
热议问题