Current location: Hot Scripts Forums » Programming Languages » ASP » help regarding insertion of date time


help regarding insertion of date time

Reply
  #1 (permalink)  
Old 03-04-04, 02:16 PM
wajeeh_r wajeeh_r is offline
Newbie Coder
 
Join Date: Jan 2004
Location: Karachi, Pakistan
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
help regarding insertion of date time

hello all members!


i have a form in which client is required to input general info. name, e-mail etc. now what i want is to insert the date and time in the memberInfo table can some one write here the insert query for this. DB is in MS Access

there is a name, email, date, time column in the memberInfo table on the form i'm just taking the I/P of name and email so what will be the insert query


strSQL= "INSERT INTO tblComments(Name, Comments) VALUES ('"&request.form("name")&"', '"&request.form("email")&"')"

what to add for date and time


waiting for replies...............
Reply With Quote
  #2 (permalink)  
Old 03-04-04, 04:05 PM
pezdspncr's Avatar
pezdspncr pezdspncr is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
well.... the function "date" will give you the current system date and the function "time" will give you the current system time.

So it should look like the following..
strSQL= "INSERT INTO tblComments(Name, Comments, date, time) VALUES ('"&request.form("name")&"', '"&request.form("email")&"', '"&date&"', '"&time&"')"
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reduce the time intensive phases of .Net application development using TierDeveloper3 smars General Advertisements 0 12-02-03 05:15 AM
Showing time is users time zone? Nasimov PHP 1 11-20-03 07:14 AM
I am not getting time even i set date propery to date/time skchakri ASP 3 09-30-03 04:47 PM
Date From Access 2000 Database Kaikki ASP 4 09-25-03 06:04 PM
Days left to certain date. Data from MySQL alfreds PHP 4 06-17-03 09:26 AM


All times are GMT -5. The time now is 04:12 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.