networkwoes
Technical User
I have written a script that imports a flat file which contains several dates on each line. The current format is YearMonthDay or 20011231 and I need to change then to MonthDayYear or 12312001. Each date is being handled as a variable such as $Line[0]. I was thinking I could split the string into three sections each stored as a separate variable such as $Line0Year, $Line0Month, and $Line0Day, but I do not know how to divide the line in the appropriate spots since there are no separators such as spaces or commas between each section. Anyone got an idea of how to approach this?