networkwoes
Technical User
Ok, here is the deal. I have what I think should be a VERY easy task, accompanied by a brain freeze. What i need to do is to exctract the highest and lowest date from a file and assign them to two variables.
The file I am working with has three columns and the second and third columns are dates. I want to somehow join the second and third column together and pull out the newest and oldest dates and assign to $lowdate and $highdate.
Here is an example of the file i am extracting from:
1,19920101,20010115
1,19930101,20020115
1,19940101,20010115
1,19950101,20060115
1,19960101,20010115
1,19970101,20110115
1,19980101,20010115
1,19990101,20010115
1,20000101,20010115
1,20010101,20310115
1,20020101,19710115
any help would be greatly appreciated!
The file I am working with has three columns and the second and third columns are dates. I want to somehow join the second and third column together and pull out the newest and oldest dates and assign to $lowdate and $highdate.
Here is an example of the file i am extracting from:
1,19920101,20010115
1,19930101,20020115
1,19940101,20010115
1,19950101,20060115
1,19960101,20010115
1,19970101,20110115
1,19980101,20010115
1,19990101,20010115
1,20000101,20010115
1,20010101,20310115
1,20020101,19710115
any help would be greatly appreciated!