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 January 18th, 2005, 11:56 PM
Authorized User
 
Join Date: Dec 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default Converting Dates

My database currently holds a date column (dte)that is converted to a double subtype using "cdbl function". Need to convert back to date format using the following in order to produce report:

courtdate = Request.QueryString("crtdate")

Sql = "SELECT dte, eTime, cnumber, text_field, defatty, etype "
Sql = Sql & "FROM diary "
Sql = Sql & "WHERE dte= '" & courtdate & "' "
objRs.Open Sql, objConn

Any help would be appreciated. I am new at this.

Mike
__________________
Mike
 
Old January 19th, 2005, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

http://www.w3schools.com/vbscript/func_cdate.asp







Similar Threads
Thread Thread Starter Forum Replies Last Post
converting dates: day of week stolte XSLT 2 November 28th, 2007 11:24 AM
dates again dhoward VB.NET 2002/2003 Basics 12 August 22nd, 2007 09:48 AM
converting dates dhoward VB.NET 2002/2003 Basics 6 August 2nd, 2007 08:42 AM
Converting dates outspaced XSLT 1 November 27th, 2006 01:31 PM
converting dates Bhavin Crystal Reports 1 October 13th, 2004 10:00 AM





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