datefmt question #2633
-
Given a file with content
how do I change the dates to |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
A really ugly workaround is something like
but should of course be a regex of sorts |
Beta Was this translation helpful? Give feedback.
-
Alternatively, you can use the See Lines 1825 to 1853 in 7f31b19 |
Beta Was this translation helpful? Give feedback.
-
Here's another option using $ qsv sqlp --quiet a.csv "SELECT DATE(create_date,'%d-%b-%y'),DATE(expiry_date, '%d-%b-%y') FROM a"
create_date,expiry_date
2022-05-26,2026-05-26 |
Beta Was this translation helpful? Give feedback.
Here's another option using
qsv sqlp
:$ qsv sqlp --quiet a.csv "SELECT DATE(create_date,'%d-%b-%y'),DATE(expiry_date, '%d-%b-%y') FROM a" create_date,expiry_date 2022-05-26,2026-05-26