Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/backendtea/csv_date_reformat
https://github.com/backendtea/csv_date_reformat
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/backendtea/csv_date_reformat
- Owner: BackEndTea
- License: mit
- Created: 2016-10-16T12:55:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-18T14:29:29.000Z (about 7 years ago)
- Last Synced: 2024-11-24T19:41:36.327Z (about 2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# CSV Date Format Changer
This script takes a csv file and changes the date format from dd/mm/yyyy to yyyy/mm/dd in the specified row. It then writes this to a new file that is named reformated - [orignialfile.csv]
I made this quite some time ago to fix a database dump i had to use, which was from whatever database uses dd/mm/yyyy for its dates, which had then been converted to a csv.
It *Should* work whether or not the days and months have leading 0's. But in all honesty i wouldn't use this for really important files that don't have any sort of backup. Its verry possible that somewhere something could get messed up.
Usage:
./start [filename] [row number]
Example:
./start lel.csv 3
This works for the example file i added.