Short date problem with ASP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sdm

    Short date problem with ASP

    Hi

    I am in the process of moving my website from NT4/IIS4 to Windows 2003. Both
    server are set to a short date format of (dd/mm/yy) however the Windows 2003
    server appears to be ignoring this and continues to display dates in asp
    pages as dd/mm/yyyy. Is there a setting in Windows 2003 that I am missing?

    Thanks

    Stephen


  • Steven Burn

    #2
    Re: Short date problem with ASP

    Why not just use the FormatDateTime function?



    --

    Regards

    Steven Burn
    Ur I.T. Mate Group


    Keeping it FREE!


    "sdm" <stephen.moss@b radford.gov.uk> wrote in message
    news:uXednRsmt6 Px-QfdSa8jmA@karoo .co.uk...[color=blue]
    > Hi
    >
    > I am in the process of moving my website from NT4/IIS4 to Windows 2003.[/color]
    Both[color=blue]
    > server are set to a short date format of (dd/mm/yy) however the Windows[/color]
    2003[color=blue]
    > server appears to be ignoring this and continues to display dates in asp
    > pages as dd/mm/yyyy. Is there a setting in Windows 2003 that I am missing?
    >
    > Thanks
    >
    > Stephen
    >
    >[/color]


    Comment

    • sdm

      #3
      Re: Short date problem with ASP

      Steven

      Thanks, I'd though of that but I would have to alter 100's of pages that
      display dates without the format function.

      Stephen



      "Steven Burn" <pvt@noyb.com > wrote in message
      news:uowtDd4MEH A.3052@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Why not just use the FormatDateTime function?
      >
      > http://surl.co.uk/?303
      >
      > --
      >[color=green]
      > >[/color]
      >
      >[/color]


      Comment

      • Dominique

        #4
        Re: Short date problem with ASP

        just change the datetime format in the regional settings of the win2003
        server.
        oi?

        "sdm" <stephen.moss@b radford.gov.uk> wrote in message
        news:uXednRsmt6 Px-QfdSa8jmA@karoo .co.uk...[color=blue]
        > Hi
        >
        > I am in the process of moving my website from NT4/IIS4 to Windows 2003.[/color]
        Both[color=blue]
        > server are set to a short date format of (dd/mm/yy) however the Windows[/color]
        2003[color=blue]
        > server appears to be ignoring this and continues to display dates in asp
        > pages as dd/mm/yyyy. Is there a setting in Windows 2003 that I am missing?
        >
        > Thanks
        >
        > Stephen
        >
        >[/color]


        Comment

        • Steven Burn

          #5
          Re: Short date problem with ASP

          Would be time consuming but surely it'd be worth it in the end?

          --

          Regards

          Steven Burn
          Ur I.T. Mate Group


          Keeping it FREE!


          "sdm" <stephen.moss@b radford.gov.uk> wrote in message
          news:RnadnVZkP8 cg9AfdSa8jmA@ka roo.co.uk...[color=blue]
          > Steven
          >
          > Thanks, I'd though of that but I would have to alter 100's of pages that
          > display dates without the format function.
          >
          > Stephen
          >
          >
          >
          > "Steven Burn" <pvt@noyb.com > wrote in message
          > news:uowtDd4MEH A.3052@TK2MSFTN GP12.phx.gbl...[color=green]
          > > Why not just use the FormatDateTime function?
          > >
          > > http://surl.co.uk/?303
          > >
          > > --
          > >[color=darkred]
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Aaron Bertrand - MVP

            #6
            Re: Short date problem with ASP

            > just change the datetime format in the regional settings of the win2003[color=blue]
            > server.[/color]

            I don't believe this will work reliably unless you log on as IUSR and change
            it for that profile (and also change the default/system). Changing it while
            you are logged in changes it only for times when you are logged on. I've
            even seen scenarios where an admin or someone can log onto the box and
            suddelny the shortdate format changes because they have custom regional
            settings.

            --
            Aaron Bertrand
            SQL Server MVP




            Comment

            Working...