Array to strings

Results 1 to 2 of 2

Thread: Array to strings

  1. #1
    Rob Guest

    Default Array to strings

    I got a string with the date and time. I can split the two parts at the space, but i want to write the first part to a string and the second part too. Anyone have any idea on how to do this?<BR><BR>Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: Array to strings

    Easy to do with vbscript functions InStr, Left and Mid.<BR><BR>Something like this:<BR>strDateTime = "5/10/2001 3:58:18 AM"<BR>intSpacePosition = InStr(strDateTime, " ")<BR>strDate = Left(strDateTime, intSpacePosition - 1)<BR>strTime = Mid(strDateTime, intSpacePosition)

Posting Permissions

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