Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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 February 19th, 2008, 01:37 PM
Authorized User
Join Date: Apr 2007
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default formatting dates back to Mysql date format

Hi all.

I have a form that people fill out which allows them to enter a date. Not to much of a problem here, I have them fill out the date as 0000-00-00 (year, month, day) as MySQL relies on...

and this writes to my database successfully.

my problem is on the my "modify page". the user can open a form that calls in all the data they entered and can make changes. The date field that gets called in from MySQL turns the dates back to slashes and in a normal date format (00/00/000).

How can I get .asp classic to format the date to display YYYY-MM-DD OR convert back to MySQl before updating itself?

Thank you.

Old February 19th, 2008, 01:58 PM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

This thread http://p2p.wrox.com/topic.asp?TOPIC_ID=28552 and this URL http://classicasp.aspfaq.com/date-ti...es-for-me.html should solve your problem.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting Dates dhoward SQL Language 4 January 30th, 2007 04:00 PM
formatting strings / dates clandestine XML 3 June 22nd, 2005 09:52 AM
Formatting For Between Dates hcweb Classic ASP Basics 7 February 8th, 2005 02:29 AM
formatting dates treasacrowe Classic ASP Basics 3 October 20th, 2004 06:52 PM
Formatting Dates Louisa VB.NET 2002/2003 Basics 3 March 16th, 2004 05:52 AM

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