zenweezil
09-29-2005, 11:09 PM
I am having trouble breaking apart a variable into shorter segments. Since there are no delimiters I can't use a Split or at least don't know how to.
The variable is a tracking number which also contains a date - so I want to pull the date out for another use.
So here is an example variable:
200592915368
I want an end result of:
9/29/2005 (or something similar)
Using cgi I would just substr the varibale into three chunks and recombine - how do I do the same in ASP?
(Additional note - the month will sometimes be 2 digits instead of 1 but I'm sure I can add in that If statement once I learn how to break apart the variable.)
Thanks in advance for an suggestions.
The variable is a tracking number which also contains a date - so I want to pull the date out for another use.
So here is an example variable:
200592915368
I want an end result of:
9/29/2005 (or something similar)
Using cgi I would just substr the varibale into three chunks and recombine - how do I do the same in ASP?
(Additional note - the month will sometimes be 2 digits instead of 1 but I'm sure I can add in that If statement once I learn how to break apart the variable.)
Thanks in advance for an suggestions.