Hello, I want to store submit date into my MSsql7.0 database. The field type is date/time. I used DATE function to store the current date.But when...

How It Works

Get an answer in three easy steps. Here's how it works...

Ask Your Question

1. Ask Your Question

Enter your programming question at the top of this page and click Get An Answer.

Pick Your Priority

2. Pick Your Priority

Tell us how quickly you want your programming question answered.

Get An Answer

3. Get An Answer

Connect with your programmer via online chat or telephone call.

Answer

Customer
Hello, I want to store submit date into my MSsql7.0 database. The field type is date/time. I used DATE function to store the current date.But when I inserted the DATE value into database it stored as 01/01/1900. Please help me to solve the problem. * I checked my server date.It shows current date. *Before storing the date into database I displayed the value of DATE it was also current date.
Last updated
Matthew Pomar
Customer Support
If you are using ASP to get the date before you insert a record it will be using your web server's clock. Check the dates on your SQL server as well as on your IIS machine.

As well, you may try defaulting the value on the field to
getdate()
so that you don't have to worry about writing code to do that in ASP.

I hope that helps.

Regards,
Matthew Pomar
m**r@aspsites.com
Posted

quoteTestimonialsquote

About ExpertHelp

ExpertHelp is changing the way you connect with service professionals.

Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.

ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!

More Programming Questions...

Ask Your Programming Question & Get An Answer Now!