Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 391077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:01:36+00:00 2026-05-12T16:01:36+00:00

We have updated our servers with Windows 2008 Server, but we are still using

  • 0

We have updated our servers with Windows 2008 Server, but we are still using SQL Server 2005 in our production software. The problem comes in one part of the system where we store times as datetimes. Since ever, storing a time in a datetime column stored the base date as the date. It is 1900-01-01 in SQL Server 2005. Back then, IIS understand that this is the default case, so our ASP application printed only the time part of the datetime and our system worked as expected.

With this sa[i]d update, the base datetime seems to have changed to 1899-12-30, so our ASP pages display the full datetime, for example 1900-01-01 07:30:00, instead of only the time (07:30:00), as this is not the default date anymore.

I know this isn’t the best approach for the system, it wasn’t me who developed it in the first place, I’m just maintaining this, so I’d like to know if there is someplace in the IIS configurations menus or in Windows where I can set the base date for my applications. I’ve read somewhere else that SQL Server 2005 uses 1900-01-01 as basedate where other MS applications use 1899-30-12, but I don’t think this is it, I hope I can change this.

I don’t know yet the consequences of extracting the time and using it in this part of the system (altering our software) instead of messing around with configurations (input to our software), but I guess the blind spots would be everywhere.

======
Example, as asked:

I can’t supply an exact example right now (I’m home for the weekend), but I can try:

set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open "SELECT * FROM TABLE WHERE ID=123", MyConnection, 1, 3
rs("MyDateTimeColumn") = Request.Form("MyTimeOnlyHtmlInput") 'Formatted as 07:14:50, for example
rs.Update 'Saved to the Data Base
rs.Close
rs.Open "SELECT * FROM TABLE WHERE ID=123", MyConnection, 1, 3 'Retrieving data back
echo "<input type='text' value='" & rs("MyDateTimeColumn") & "' />"

That code used to work, I’d feed “01:23:45” in the input, post it to this code and it would print the input with the time only. Right now, what I get in the input is “1899-12-30 01:23:45.000”.

UPDATE:
I’ve asked our Server Manager for help, he’ll try MSFT as resource. I’ll update this if I get news. Thank you all for the help. I’ll update this if I get some news.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:01:36+00:00Added an answer on May 12, 2026 at 4:01 pm

    You appear to be saying that this problem has only surfaced when you upgraded to Windows 2008. I’m finding that a little hard to grasp.

    SQL servers “zero” date is 1900-01-01 and that hasn’t changed
    VBScripts “zero” date is 1899-12-30 and that hasn’t changed either.

    There is no system setting which affects either of these base dates.

    I suspect that something else has changed in your system that has changed the way it behaves. It may be related to your server upgrade but its difficult to perceive what that would be. An example of the code that was working and now isn’t would be good?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 208k
  • Answers 208k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There is no such standard mapping of user account to… May 12, 2026 at 9:34 pm
  • Editorial Team
    Editorial Team added an answer OK, I got it working. Thanks to Jason and all… May 12, 2026 at 9:34 pm
  • Editorial Team
    Editorial Team added an answer You could actually do it in PHP. Write one program… May 12, 2026 at 9:34 pm

Related Questions

Management has decided to go for Windows 2008 64 bit with IIS7 to service
One of my colleagues has totally messed up the contents of a directory in
I've found a dilly of a pickle with a new web server. We have
We have a Library Project that we use for all our central reused code
We are building an AbleCommerce 7 web store and trying to integrate it with

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.