G
Guest
I get a weekly csv flat file from UPS with data about shipments. In this
file the date of shipment is a string that is, for example, 9242005 for this
week. The last 4 fields are always the year, the 5th and 6th from the right
are always the date and the 7th (and 8th for 2 digit months) from the right
is the month. Additional examples of the string:
July 9, 2005 -- 7092005
August 20, 2005 -- 8202005
October 8, 2005 -- 10082005
What is the preferred function(s) to convert these to dates that can be used
to generate reports for date ranges, etc?
I think I can check the length of string and then use the mid function to
pluck the right numbers. How do I check the length of the string and then
how would I convert the 3 sets of numbers into mm/dd/yyyy?
Thanks is advance for the help.
file the date of shipment is a string that is, for example, 9242005 for this
week. The last 4 fields are always the year, the 5th and 6th from the right
are always the date and the 7th (and 8th for 2 digit months) from the right
is the month. Additional examples of the string:
July 9, 2005 -- 7092005
August 20, 2005 -- 8202005
October 8, 2005 -- 10082005
What is the preferred function(s) to convert these to dates that can be used
to generate reports for date ranges, etc?
I think I can check the length of string and then use the mid function to
pluck the right numbers. How do I check the length of the string and then
how would I convert the 3 sets of numbers into mm/dd/yyyy?
Thanks is advance for the help.