Apr 27, 2005 #1 scottRen Technical User Joined Feb 4, 2005 Messages 69 Location CA i have a string containing a date, the format can be either containing a / or a - as a divider between the numbers I would like to be able to determine if the string contains a / or a - so i can response.write something different for each case thanks
i have a string containing a date, the format can be either containing a / or a - as a divider between the numbers I would like to be able to determine if the string contains a / or a - so i can response.write something different for each case thanks
Apr 27, 2005 1 #2 steven290 Programmer Joined Mar 13, 2005 Messages 1,077 Location US here you go str="4-0-05" Code: if instr(str,"/")=0 then response.Write "must be -" else response.Write "must be /" end if Upvote 0 Downvote
here you go str="4-0-05" Code: if instr(str,"/")=0 then response.Write "must be -" else response.Write "must be /" end if