Print Page | Close Window

Date insert

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=2628
Printed Date: 29 March 2026 at 7:40pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Date insert
Posted By: Scooter
Subject: Date insert
Date Posted: 12 May 2003 at 3:07am

I am trying to develop a very simple message board system using Dreamweaver MX and I want to be able to date stamp the page without the user having to enter the date themselves.

The other problem I am having is when the user presses the return key an puts breaks in their text, I want the breaks to show up without having to type in < br >

thanks  

 




Replies:
Posted By: ultramods
Date Posted: 12 May 2003 at 5:31am

To date stamp the entry, have a field in your database such as dateEntered whitch will be of type date/time and will have a default value of "now()"

to allow users to enter text and have breaks in the text you would be best using a wysiwyg text editor like the one at the bottom of this page. Here is a tutorial to show you how to construct one.

http://www.devarticles.com/art/1/90/2 - http://www.devarticles.com/art/1/90/2



Posted By: MorningZ
Date Posted: 12 May 2003 at 8:43am

wow... want to build a message board app and don't know how to do those simple things?

learn the basics first :-)

for the second issue, the following works:
Replace( MessageText, vbCrlf, "<br />")



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: Scooter
Date Posted: 12 May 2003 at 12:01pm

I had thought of the "now()" but wasn't sure that it wouldn't keep bringing up the same date for every entry.

Will give it a go with the replacement text entry code...

Will definatly have to learn a bit more....  NO a LOT more...

thank    to  you both...



-------------
There is no I in TEAM


Posted By: Scooter
Date Posted: 14 May 2003 at 3:16am
Sorted out the Now() bit, but is there a bit of code that will only show the date and NOT the time.

-------------
There is no I in TEAM



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net