Get Last Date In CSV File
Posted: Thu Jun 15, 2017 12:01 am
Hello again guys, I'm facing difficulties in getting the last possible date in my .CSV file. Here's the scenario:
Supposed I have a CSV file with 'Date' column (together with other columns). Example, I have 66 rows of 5/1/2017 (May 1, 2017) data, 10 rows of 5/2/2017 (May 2, 2017) data, and so on and so forth 'til 5/31/2017 (May 31, 2017). Now, this file is being processed every first week of the following month (so for this, it would June). Because this is End-of-Month file processing, output should get only the last/latest date available in the CSV file (in this case, 5/31/2017). Regardless if it 5/1/2017, 5/2/2017, 5/3/2017, etc... it should be replaced by 5/31/2017 to still include them in the output.
Also, I would want to change the format of the processed 'Date' into dd/mm/yyyy (31/05/2017).
Thanks in advance gurus!
Michael
Supposed I have a CSV file with 'Date' column (together with other columns). Example, I have 66 rows of 5/1/2017 (May 1, 2017) data, 10 rows of 5/2/2017 (May 2, 2017) data, and so on and so forth 'til 5/31/2017 (May 31, 2017). Now, this file is being processed every first week of the following month (so for this, it would June). Because this is End-of-Month file processing, output should get only the last/latest date available in the CSV file (in this case, 5/31/2017). Regardless if it 5/1/2017, 5/2/2017, 5/3/2017, etc... it should be replaced by 5/31/2017 to still include them in the output.
Also, I would want to change the format of the processed 'Date' into dd/mm/yyyy (31/05/2017).
Thanks in advance gurus!
Michael