h*****l 发帖数: 184 | 1 mm/dd/yyyy
the problem is the string's length is not fixed,
for mm and dd could be one character or two characters.
for example, 1/1/2000 or 10/10/2000
I just want to read out
1. the part before first /
2. the part between first and second /.
How can Javascript, VBscript or ASP do that?
Thanks! | o***z 发帖数: 133 | 2 split it and read first two elements
【在 h*****l 的大作中提到】 : mm/dd/yyyy : the problem is the string's length is not fixed, : for mm and dd could be one character or two characters. : for example, 1/1/2000 or 10/10/2000 : I just want to read out : 1. the part before first / : 2. the part between first and second /. : How can Javascript, VBscript or ASP do that? : Thanks!
| h*****l 发帖数: 184 | 3 I do not understand, more detail, thanks!
【在 o***z 的大作中提到】 : split it and read first two elements
| o***z 发帖数: 133 | 4 if your ASP script is written in perl, it should be like
@date=split('/',$your_string)
what you want are in $date[0,1]
【在 h*****l 的大作中提到】 : I do not understand, more detail, thanks!
|
|