由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - How to read out part of a string like xx/xx/xxxx
相关主题
ASP究竟是怎么回事?学完了html、js之后之应该学习asp吗?
请问 Javascript + ASP + ADO ?请教:网页的Back按钮是怎么做的?
Question on this ASP code.how to process session varible in javascript?
[转载] 请教ASP高手如何把ASP的变量传到javascript/HTML的参数
Re: Can asp invoke a software at the server side???Help, very urgent!请问ASP高手
[转载] ASP的script function里, 可以query database吗?Ok leRe: 请问ASP高手
ASP string.endswith 问题how to do this?
vbscript and ASPRe: [转载] webmonkey
相关话题的讨论汇总
话题: part话题: string话题: xx话题: read话题: asp
进入BuildingWeb版参与讨论
1 (共1页)
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!
1 (共1页)
进入BuildingWeb版参与讨论
相关主题
Re: [转载] webmonkeyRe: Can asp invoke a software at the server side???Help, very urgent!
Urgent: ASP support?[转载] ASP的script function里, 可以query database吗?
网页中数据库格式显示问题ASP string.endswith 问题
为什么webpage里收不到ATL control 的eventvbscript and ASP
ASP究竟是怎么回事?学完了html、js之后之应该学习asp吗?
请问 Javascript + ASP + ADO ?请教:网页的Back按钮是怎么做的?
Question on this ASP code.how to process session varible in javascript?
[转载] 请教ASP高手如何把ASP的变量传到javascript/HTML的参数
相关话题的讨论汇总
话题: part话题: string话题: xx话题: read话题: asp