Hello,
I have text files with the date at the beginning of the every line in such format:
month (2 digits)-day(2 digits)-year(four digits)
example
02-22-2005
I want to change it to:
year-month-day
like:
2005-02-22
Is any way to do it with the TextPipe?
Thanx for the answer
Changing the order of digits in date
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
- DataMystic Support
- Site Admin
- Posts: 2229
- Joined: Mon Jun 30, 2003 12:32 pm
- Location: Melbourne, Australia
- Contact:
Very easy, use the EasyPattern search/replace
[ capture(2 digits), '-', capture(2 digits), '-', capture(4 digits) ]
Replace with
$3-$1-$2
[ capture(2 digits), '-', capture(2 digits), '-', capture(4 digits) ]
Replace with
$3-$1-$2
Regards,
Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads
Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads