I am attempting to solve a date/time formatting issue is
VBScript ASP pages. The ASP pages needs to determine what
time zone the client browser is in and tell a COM object.
The COM object then reads information from a proprietary
file and formats the date/time into the appropriate time
zone and returns the information to the ASP in an XML
form.
My question is how do I determine the client's time Zone
using VBScript in ASP pages?
I know this is probably simple, but I'll ask anyway. I have a form which when submitted to the database the field in the database automatically adds date and time which is fine. My only problem is that my site is for the GMT UK time zone, but the database resides on a American server, IE the database records the local American time (-5 hours difference)
New to ASP,JScript,VBScript.I have a server in one time zone and a client in another. The ASP reads time from the server.I need capture the time on the client and use that in the server code.
Is there an asp component anywhere which will convert a GMT time in the past to a different time zone e.g. EST? You can't just take the hours off as there is often daylight saving hours to take into consideration.
I got a problem solving on how to convert the following time zone all into EST. My server is currently in EST but i need to convert the following time zone [PST,MST,CST] all into EST given all the exact time. eg 09:00 AM PST, 1:00 PM MST, 2:00 PM CST etc etc.
PST to EST MST to EST CST to EST
I've been working for this a week now and i hope somebody will give me sample code
I have run into a bit of a time zone problem. Basically, I am using ASP and Javascript to handle dates and guess what... you got it, the client could be in any time zone but the server will always be in the same one (UK actually).
I have figured the best method would be to use Javascript to determine the GMT offset (.getTimeZoneOffset), then pass that to my ASP script (I am already doing Javascript->ASP work, I am just appending this to the end of the querystring). ASP will have two dates then, the server date and the client date, and then the client GMT offset. Once I get this offset in ASP, how can I use that with the dates/times I am working with?
I'm using brinkster, and am trying to change the Time Zone, 5 hours forward to London UK time, and also, reduce the rime by 7 minutes, as their server is off by that many minutes - I asked them to change it, the said no, it's correct, but I synchronse time with time.windows.com and the time was 7 minutes behind from brinkster.
You may think I'm being a pain, but on my site, the products I add are time dependent and people need to know the exact time. the code is below, of course, with everything I try, I get an error, can someone please figure out my mistake. Many thanks + Happy new year every1
using now() instead of time(). but then when i want to print " thetime " onto a page, ill get something like "7/11/2005, 5:10:13 PM". how could i then separate the new date from the new time and print them to a page separately?
I working on a project where we will be hosting several websites on the same server. These websites are built of a similar template and I want to use the URL as a key to get settings from the database. Is there a way to programatically get the website url in the application_onstart. I know I could hard code it in but that leaves things open to user error.
I am trying to reiterate through a for..next..loop using an integer (i). I would like to know when it is either a odd or an even number, insteading of using the simple version below:
if i = 1 or i=3 or i = 5 then Response.Write "<tr " & strRowOdd & ">" & vbcrlf else Response.Write "<tr>" & vbcrlf end if
80070002 corresponding to line18: wshell.run (name).
When I copy & paste this command to prompt it works fine. Have tried other simple commands such as ping as they work fine. Any idea what error number could be or how I could output the error the prompt might be giving. Code:
I have a limited number of ad slots on my website, let's say there are 5. I have lots of people wanting to advertise in those slots, let's say there are 100. They each join the queue for an ad slot on a first- come, first-served basis.
I have been trying to find a way to determine the active date for a queued item. For the first five items in the queue it's easy, it's just the expiry date of the item in a live slot that expires first. For the next five queued items it's still easy, because it's just the expiry date of the item in the queue that will expire first.
HOWEVER, after that it becomes more complex, because the queued items will continually be slotting into live slots as live items expire. So my question is, is there a straightforward way, in ASP, of determining the active date for a queued item in a queue of arbitrary size?
myGetImage.asp is suppose to create a temporary file in the client side, and display in on the client web browser. myGetImage.asp needs to know the clients web browser temporary system path, in order to create the temp file. How do I get the parameter and value of clients web browser temporary system path?
does anyone know how to get all the sessionID that are active on a web site. I want to know how many people are on my web site and what their sessionID would be if I do response.write(Session.SessionID)
i am trying to build a page that my client can log onto with a password and update information daily, if there is someone who can point me in the right direction or tell me how to do this it will save me days of research trying to find it myself.
How to incorporate this Install-feature into my web site. I already wrote the setup program which is available on my web server. I do not want to let the setup program to be downloaded and get installed If this is not possible using ASP then do I need to really move to CGI scripting.
I am facing a strange problem. I want to give a functionality to the client where he can download a complete folder from the server. but how to give this functionality is the main problem.
I have one ASP page where I am creating various files of vcf extension dynamically and now I want that client should be able to download all those files. Those files are present in one folder and so I want to give that whole folder to the client.so now I want some trickes/code or URL from you guys to achive this .
I'm working on a site that inserts records into an Access database and Access assigns an auto-incrementing id for the record. How can I quickly figure out what id that was just created? I seem to remember there being a function for this....
I have a server that we installed a Web Application (ASP) and It works with a few clients that we tested, IE 5.5, and it does not work on the server machine itself. So we've tested a few thing.
Created a simple file with the contents of <html> <body> Hello World </body> </html> Made one with .HTM extension and one with .ASP.
I can see the HTM file from all machines. I can only see the .ASP file on the machine running IE 5.5 The server itself cannot see the .ASP page. We places the files in the root of the server web and in the Application folder with the same results.