1. I have a Severity dropdown (1, 2, 3, 4 and 5) in my script
2. Date (dateref)(varchar)
3. time (timeref) (varchar)
I want to do this, but have no clue how to write the script to do it.
It must Automatically update date and time as per severity rating
a. Severity 1. Date to be same day, Time + 1hour
b. Severity 2. Date +1 day. Time to be current time
c. Severity 3. Date + 3 days. Time to be current time
d. Severity 4. Date + 5 days. Time to be current time
e Severity 5. Date and time to default blank.
If I select any severity, it must changed the time and date that is on the same form, and save it to the table.
I am working on a HTML form with textfields, radiobuttons and comboboxs. I was wondering if it were possible to automatically update values within a combobox based on the users selection of a radiobutton. I have stored values within a database table of 'seminar_times' and the two radiobuttons options are 'city1' and 'city2' on the form.
So on the form, when the user selects city1 radiobutton, the combobox value updates with approriate city1 seminar times. Is this possible with ASP programming?
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
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:
THinking that the reasone why it's not UPDATING all was because the the page holds 10 records at a time right? I tried blocking all the codes which have to do with pageing but it's not working. Can you show me what I missed (if that's the reason why it cannot UPDATE all at once)? Code:
I want to insert the element selected by the user from the drop down box in the DB(Access).Once the user hits submit i want it to insert this in the DB + i want to update one of the fields from True to False . how can i perform both these at the same time?
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?
There's an access database on an iisserver and asp makes updates to it. The database got moved to a newer server. The users used to be able to open the database and use the asp pages at the same time. Now when the database is open the asp pages won't update.
I have an asp page in which I use the �time() function but that just gives the time at the moment the page is loaded. I need to reload/refresh the page once every second so the seconds increase by one continuously.
When I write out the update statement the date is in dd/mm/yyyy format but I checked the record in my database it changes to mm/dd/yyyy. I realised it only happens when the d<=12. How do I solve this problem??
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 )
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:
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.
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.
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:
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:
I have form to update multiple data at one time. One of the field is Inspection_Dt. I want to update this field using calendar. But when i click on the calendar, it will refresh the page. Code:
I've declared a variable for the current date and want to use the UPDATE function to update the date field in a single record.
UPDATE lms_users Set leaver_date ="&MakeDate" WHERE user_id="473"
I know I have the date format in the variable as if I response.write it to the screen is displays correctly (28/08/2004). I must be doing something really silly, but can't see it.
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.
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
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