Wrox Programmer Forums
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 25th, 2005, 02:38 AM
Authorized User
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Handling Datetime in database

Hi All,
I want to insert System date and time into the database into a single column from asp page.
As you know, date () and time() are two different functions in asp, so we need to concatenate these two functions to get datetime, then we have to insert datetime as a string.
But I want datetime column datatype in the datebase to be DATETIME only.If I change it into string then I cant perform Date manipulations on that datatime column data.

How to handle this?

Thanks in Advance...

Old November 25th, 2005, 05:42 AM
Friend of Wrox
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post

Hi Ram,

The Now() function will return a date/time you can manipulate.



Similar Threads
Thread Thread Starter Forum Replies Last Post
datetime scandalous SQL Server 2005 3 December 19th, 2007 10:33 AM
datetime MathLearner Beginning VB 6 0 November 15th, 2007 07:12 AM
Need ONLY date in datetime field in Database Lucy SQL Server 2000 10 April 30th, 2007 09:20 AM
Is it possible to handling the database in Javascr pushpa Classic ASP Basics 3 March 9th, 2007 07:11 AM
UTC DateTime to Local DateTime r_ganesh76 SQL Server 2000 1 April 4th, 2005 08:21 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.