Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Date Time differences Firefox and IE

Date Time differences Firefox and IE

Scheduled Pinned Locked Moved Visual Basic
databasesysadmintestingbeta-testingquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheJudeDude
    wrote on last edited by
    #1

    This one is throwing me for a doozie. Have a program that is recording times and writing to a database. We are in testing mode right now. We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format. So I wrote a q&d to output dates and noticed that when using firefox the date was in dd//mm/yyyy format and when in IE the format was in mm/dd/yyyy format. But when we were testing we noticed that it sometimes would write in dd/mm/yyyy format from IE also. Sporadic. The site is on the web server and the database is also on the same web server. Anyone know how or why this would happen? Thanx in advance.

    Jude

    D 1 Reply Last reply
    0
    • T TheJudeDude

      This one is throwing me for a doozie. Have a program that is recording times and writing to a database. We are in testing mode right now. We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format. So I wrote a q&d to output dates and noticed that when using firefox the date was in dd//mm/yyyy format and when in IE the format was in mm/dd/yyyy format. But when we were testing we noticed that it sometimes would write in dd/mm/yyyy format from IE also. Sporadic. The site is on the web server and the database is also on the same web server. Anyone know how or why this would happen? Thanx in advance.

      Jude

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      TheJudeDude wrote:

      We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format.

      This tells me you're storing your date/times in your database as a String, not as a DateTime value. If so, this is a HUGE mistake that will cause you all kinds of headaches like this.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups