Results 1 to 3 of 3

Thread: Using a Date in filename

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    11

    Using a Date in filename

    I have a small program that changes the name of a file to include a date chosen by the user on a calendar object. I need to customize the date object to use the "-" instead of the "/"

    Any help would be helpful.

    Ron.

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    VB Code:
    1. Dim myString As String = "File1/1/01"
    2. Dim aString As String
    3.  
    4. aString = Replace(myString, "/", "-")

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2004
    Posts
    11
    You are a genius. And helpful.

    I appreciate it.

    Ron.

Posting Permissions

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



Click Here to Expand Forum to Full Width