Date/time Stamp For E-mail Form
I'm a complete beginner when it comes to ASP (CF and PHP are my regulars) and am trying to help a friend out with a very basic form on his site. It's your standard issue "fill this out for more info" HTML form, which will be processed by an ASP script, and then spit out a "thank you" page at the end. The thank you page will not have to display any information about the request.
The entire form is working great, collecting the visitor's name, e-mail address, phone number, and info from some radio buttons. But we'd like to add an automatic time/date stamp so that when the form is submitted and then received by the site's owner at the other end via e-mail, it also shows the date and time it was sent. I imagine we'd use some sort of hidden field? I'm of course open to any ideas.
The format of a sample e-mail could then be:
Date/Time Submitted: 2003/04/26, 11:03 pm
Name: bob joe
E-mail: bob@joe.com
Phone Number: 000-000-0000
View Replies
ADVERTISEMENT
Im looking for a simple app with a start and stop button that when clicked
will add a time and date stamp into a database (and add it up on a weekly
basis)i wanna keep track of my time on a particular project for the next few weeks
View Replies
View Related
I'd like to stamp a field (Visitors_FulfilmentDate) with the current Date/Time (it is SQL2000 - smalldatetime datatype).
Using ASP - would like to set Visitors_FulfilmentDate to whatever is the current date/time. Tried using Now() but it doesn't work ("[Microsoft][ODBC SQL Server Driver][SQL Server]'Now' is not a recognized function name. ") :
strSQL = "UPDATE Visitors SET Visitors_Fulfilled = 1, Visitors_FulfilmentDate = Now() WHERE Visitors_ID = "& strFulfilmentCode ....
View Replies
View Related
I am trying to store the current date to an ms access database on my server.
I set it up with a dsnless connection.
Here is the statement:
Insert Into employees(timestamp) Values ('" & date() & "')"
the timestamp field is of type date/time in the ms access database.
I get an error saying the insert statement is invalid. Cannot get you the
exact error, my server is down.
But it seems that the syntax is correct.
View Replies
View Related
I have an asp form which is capable of entering a Now() datetime stamp. Can anyone show me how I can then use this information to let change some text once 48 hours has passed? I.E. compare the now() time stamp with time now. As yet I've tried to use Date() but this does not count to exactly 48 hours after the initial time stamp.
View Replies
View Related
I am trying to replicate the Unix Timestamp,specifically the function
mktime() in Vbscript, ASP. I have the following so far:
ThisTime = DateSerial(2004, 9, 27) + TimeSerial(0, 0, 0)
response.write DateDiff("s", "12/31/1969 00:00:00", ThisTime)
This returns the timestamp: 1096329600, and when you decode that it comes
to: 27 Sep 2004 20:00. I want to set the time too, ie. show for example: 27
Sep 2004 16:15
View Replies
View Related
i have some vars throughout an application that has a time stamp in the format:
8/30/2006
at the end of the app in a few places, its required that the stamp be like this format: YYYY-MM-DD
i'm trying to change this and am having no luck, any suggestions:
varDate = "8/30/2006"
Replace(varDate, inStr(Left(varDate "/", 2)&"/"), Right(varDate, 4)&"-")
View Replies
View Related
I have been working on a form that updates an access database via a SQL statement. I believe I have the SQL part correct as when I do the response.write SQL I get what I believe to be correct. Code:
View Replies
View Related
My customers webpage sends emails to everyone in the members database using
CDONTS. The customer is on the west coast, the server is on the east coast.
The email has Eastern time on it, 3 hours ahead of Pacific time. Is there
any way to set the sent time that goes out with an email??
View Replies
View Related
How to insert time stamp data into Access Database when insert other data together in ASP/.
View Replies
View Related
I have a guestbook and want to add a date field. I want the date field to be automatically stamped as it were when someone submits a new entry to the guestbook, how can I do that? My database is Access by the way.
View Replies
View Related
I need a good way to have my users enter the date and time into a form. Could someone please give me some ideas here. What is the preferrable method for doing this in an asp form page? Should I use java script to pick the date and time? If so please tell me where
I could find this.
I am looking for a way to make this easy for the user.
View Replies
View Related
there i was just windering how do i compare a date/time vlaue in sql server agaisnt the computers' date/time.
for example, if computer date/time is two months or 2 weeks before the database date/time do something
View Replies
View Related
I'm using CDO to send mail to the site owner from ASP pages with forms.
Recently one of my forms is occasionally sending email with what seems
to be an insertion which is replacing the plain text part of the email
with something else. Looking at the server sent email source, the
hacked emails have the following:
View Replies
View Related
Currently working on a ASP for a friend, which requires the date and
time on it. It pulls in entries from an Access Database with dates and
times in the format of:
"Fri Oct 17 18:02:46 2003"
However my date and time on the ASP page is displayed as:
"Friday, October 17, 2003 18:02:46"
using the script:
"<%Session.LCID = 1033%>
<%=FormatDateTime(Date(), vbLongDate)%>
<%Session.LCID = 2057%>
<%=time()%>"
Anyone know how to change this script, fully or partly to produce the
date and time on the format that's in the access database i.e. "Fri Oct 17
18:02:46 2003" Code:
View Replies
View Related
How do i select all records from a table that has a datetime field in it by date.
so i want all the records that was created today.
if i put only the date it doesn't work. this is what i have:
Code:
strsql = "select cnum from [topline data] where cnum = '" & cnum & "' and activerecord = "& activerecord & " and timestamp <> '12/10/2007'"
View Replies
View Related
I have a form on a website for logged-in customers to update their contact details, when the customer update their contact details it should update the record in the database and at the same time the updated contact details should be sent to me by email.
I'm not an expert in ASP 3.0 and therefor I'm using dreamweaver 8 to create asp pages(ASP 3.0 VB), but dreamweaver does not have such kind of fuction(server behavior) to do this and so I have to create this by hand.
Now I already have page with the form that updates the record in the database, and I also have another page that does the mailing(CDONTS), first it updates the record in the database and in dreamweaver I have set "after insert the record go to mail_processing.asp" , but this does not work.
I can only get one to work, either only update the record or only mail the form data.
How can I make it to update and mail at the same time?
View Replies
View Related
I have a simple asp script that pulls data from an ingres database and
displays it on screen.
It all works fine except for date/time fields where the date >=
24/10/2004 and <= 31/10/2004 where it takes 1 hour off the time ie
in the database I have 24/10/2004 08:00
the asp displays 24/10/2004 07:00
The same thing happens for the same date next year.
Any thoughts?
View Replies
View Related
I want to print only the time of the date. the date is in format "dd/MM/yyyy hh:mm AM/PM"
View Replies
View Related
I've had a little search, including here http://msdn.microsoft.com/library/de...ctdatepart.asp
but can't find anything about GMT and Local time.
what time does now() read? GMT time or local depending on where the server is? How do I get the time differences? I don't want to display GMT time for people living in Australia!!
I had a quick search, but it's almost 4 in the morning ( GMT )
View Replies
View Related
the code below fills a select drop down box with dates. There are rules for what the first date is displayed, like, if its a friday today then show monday first etc. There are two problems, one is that sometimes the date goes into the database when sent as DD/MM/CCCC and sometimes it goes in as MM/DD/CCCC.
I need it to go in as DD/MM/YYYY. Also on some occasions when displayed on the page it is shows as 23/MM/200, not showing a valid month which creates errors when put into the database. Code:
View Replies
View Related
Using SQL server I have a table that needs to be automatically filled with a date and time
How is this done?
View Replies
View Related
DateDifferent=DateDiff("d",Date(),rsSelect("ExpiryDate"))
tis is the code to get the date differnt between date now with the date from the DB. becoz the interval is Date(d), how can i get the time different between the time? and the PM and AM too.
View Replies
View Related
I am trying to get this date/time field right, but couldn't find any solution to it.I have a field DateApply, set to Date/Time data type, and the format is dd/mm/yyyy. In my asp page, I set the Session.LCID to 2057, which is the same format as the one I set for the DateApply field (dd/mm/yyyy).
However, when I try to insert the date into this field, the date is different from the one I inserted. For example, I insert 25/07/2005, but when I look into the table, the date becomes 05/07/2025.I have tried to use FormatDateTime before inserting the date into the table, but no luck.Can someone give me a hand on this? I have did some googling on this matter,as well.
View Replies
View Related
I have written asp code to insert current date and time. my database is in sql server 2000. this is the sql query that i m using.
sql = "INSERT INTO tblDailyVisitLog
(UserID,DailyDate,DailyTime) VALUES
('test',"&formatdatetime(date,2)&",'"&formatdatetime
(date,3)&"')"
But when I checked in the database in date and time field it shows "1/1/1900" in both fields.
View Replies
View Related
I am programming in VB Script in my ASP page and i am looking to grab the Data and Time from the systems internal clock.
What I am going to want to do is pre-populate a couple input boxes. So I have to set them to a variable and then get the syntax correct to set the value of the input box. Code:
View Replies
View Related
I got form so it send to database (.mdb) so everything is working. On my form is sending First Name and Last Name to my database, so i wondering is it possible submit the date/time when the form have sent to my database. The scripts are: Code:
View Replies
View Related
I select the date and time from the column date_stamp in database
(example : 11/10/2003 12:48:34 PM),
can anyone please tell me is there any mothod that i can use to separe the date and time??
View Replies
View Related
How can I get date and time on the server. I want to log the date and time on the server when the ASP page is accessed.
View Replies
View Related
I am trying to format the following line fo code so that it shows tha date time in my database as dd mm yyyy
currently in the database it shows as 2006-10-03 08:01:00
Here is the code that I want to format it is posssible to format it in such a way???
Response.Write "<td class=TableFieldInput>" &trim(rsSet("Archive_date")) &"</td>"
View Replies
View Related
I have never done this before however i'd like to know if anyone knows a way that I can UPDATE records in an SQL db with the Current Date and Time???
View Replies
View Related
I'm looping through database results where I have a date time field in the format: 9/2/2007 6:28:53 AM. What I'm trying to do is flag entries that are within the next 12 and 24 hours with a different color. I'm doing this currently with a counter field on another project like this:
PMCOLOR = "#000000"
If cLng(rs("target_current_value")) > cLng(rs("target_value"))- 2800 Then
PMCOLOR = "#FF0000"
End If
If cLng(rs("target_current_value")) > cLng(rs("target_value"))- 1400 Then
PMCOLOR = "#FF9900"
End If
This turns the line red if the current value is within 1400 of target and orange if its within 2800 of target. I want to do exactly the same thing with the date/time field flagging entries red if they are within 12 hours of the current time/date and flagging them orange if they are within 24 hours of current date/time.
I'm not sure how to break down the time and date and compare them to the current time and date, though. Its easy with integers.
View Replies
View Related
i am trying to upload files to a webserver. When i send the file of any .ext i want the filename to contain the filename and date&time in the filename filenamedatetime.xxx
the following is my code piece to send the file:
If FileName <> "" Then
FileName = Mid(Filename,InstrRev(FileName, "")+1)
set fso = Server.CreateObject("Scripting.Filesystemobject")
set fle = fso.CreateTextFile(server.MapPath(FileName))
' write the data
fle.write DataString
fle.close
View Replies
View Related