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 December 8th, 2004, 09:05 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Dates in Access

Hi there...

I have a "date/time" field in my Access db. I`ve set it to "Default Value = Now()". And it get`s by default the date and the time.

What I want to do is to insert in this field only the 'date value' without the 'time value'. Is this possible?
 
Old December 8th, 2004, 09:32 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Setting the default value to Date() should do what you want.

HTH,

Chris

 
Old December 8th, 2004, 09:42 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default


 Which format did u set in the database date/time field?

use Date() function if it is mm/dd/yy format otherwise
ise FormatDateTime() function to insert to that format.


--------------
Rajani






Similar Threads
Thread Thread Starter Forum Replies Last Post
help adding dates to ms Access db MarkGT Classic ASP Basics 11 April 22nd, 2008 11:34 PM
Dates in Access Neil1234567 Access 1 October 18th, 2007 06:41 AM
problem getting the last 4 dates smiter SQL Language 3 January 16th, 2007 05:19 AM
access calendars multiple dates RobertCoats Access 0 June 23rd, 2005 02:14 PM
SQL Problem in access with dates tucker SQL Language 4 December 19th, 2003 12:16 PM





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