Results 1 to 6 of 6

Thread: J-Man

  1. #1
    separate a string Guest

    Default J-Man

    I need to split a string that looks like this 7/13/43 to make it look like this 43-7-13. I can move the 43 to the front but am having trouble with the rest since the 7 could be a single digit or two and the same with the 13. Any help is appreciated.<BR><BR>Thanks

  2. #2
    J-man Guest

    Default Seperate a string

    backwards. Oops

  3. #3
    RDM Guest

    Default Use InstrRev

    to find the x position "/" starting from the right. <BR><BR> nPos = InStrRev(sVar,"/",nStartingPosition)

  4. #4
    Join Date
    Dec 1969

    Default Moving around dates.....

    sort of like this....<BR>numbers = split(somestring,"/")<BR><BR>response.write(numbers(2) & "-" & numbers(0) & "-" & numbers(1))<BR><BR>Should do the trick...<BR><BR>Do a search on the split function...<BR><BR>-- Whol

  5. #5
    RDM Guest

    Default I like this one...


  6. #6
    J-Man Guest

    Default RE: Moving around dates.....

    Thanks, that works perfect

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts