Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sygg13

    Using VBScript to convert DD/MM/YYYY format to MM/DD/YYYY

    Btw, the goal has been met :)
  2. sygg13

    Using VBScript to convert DD/MM/YYYY format to MM/DD/YYYY

    The goal of this post was to convert "1/4/12" (which represented April 1, 2012 in UK), into "4/1/12" (April 1, 2012 in US format). I need US format dates for my system.
  3. sygg13

    Using VBScript to convert DD/MM/YYYY format to MM/DD/YYYY

    I've used Skip's parser, and that works fine. There's a lot of commented out lines in my code, so please ignore them. dateString = "4/5/12" dateString2 = "12/5/12" RegSource = "UK" response.write "RegSource is" & RegSource & "<br>" formattedDateString = "" formattedDateString2 = ""...
  4. sygg13

    Using VBScript to convert DD/MM/YYYY format to MM/DD/YYYY

    Using "1/4/10" as a test, it seems that the "10" is recognized as representing 2010.
  5. sygg13

    Using VBScript to convert DD/MM/YYYY format to MM/DD/YYYY

    OK, so what I wound up doing was this. I'm not sure how to parse by using the "/" characters as markers, so I used the following instead: Dim aDate Dim dateString, country Dim switchedDay, switchedMonth, switchedYear country = "UK" document.write("UK<br>") dateString = "1/4/10" 'represents...
  6. sygg13

    Using VBScript to convert DD/MM/YYYY format to MM/DD/YYYY

    As far as I can tell, there is no EDIT function on this site, so let me clarify by saying that the value for dateString is written via the UK format and is supposed to represent "April 1, 2010".
  7. sygg13

    Using VBScript to convert DD/MM/YYYY format to MM/DD/YYYY

    Hi, Let's suppose I have the following code: <html> <head> <title>Untitled</title> </head> <body> <script type="text/vbscript"> Dim aDate Dim dateString, country country = "UK" dateString = "1/4/10" if country = "UK" then aDate = CDate(dateString) document.write(aDate & "<br>")...

Part and Inventory Search

Back
Top