Determining Client's Time Zone

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?

View Replies


ADVERTISEMENT

Time Zone

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)

View Replies View Related

One Time Zone

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.

View Replies View Related

Convert Time Zone

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.

View Replies View Related

Time Zone Conversion

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

View Replies View Related

Time Zone Help (GMT Offset?)

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?

View Replies View Related

Changing Time Zone

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

Code:

<%=(DateAdd("n",-7,now()))(DateAdd("h",5,now()))%>

View Replies View Related

Is It Possible To Determine The Client's Time Zone On The Server?

I was wondering if anyone knew how to determine how to determine the
client's time zone from within an ASP page?

View Replies View Related

Change Time Zone On Date Entered

how to either change the time zone or add three hours to the following?

View Replies View Related

Changing Time Zone + Affecting The Date...

i can use this to change the time on my site by +2 hours:

offsetminutes=120
thetime=dateadd("n", offsetminutes, time())

but, say it's 11pm.. the script above will make it 1am, but will the date in " date() " go ahead one day too?

the other thing i could do is this:

offsetminutes=120
thetime=dateadd("n", offsetminutes, now())

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?

View Replies View Related

Determining URL

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.

View Replies View Related

Determining Whether An Integer Is Even Or Odd...

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

Want to format table rows in a different style.

Any ideas?

View Replies View Related

Determining Password Length In ASP

how to determine password length using asp...or vbscript. can you include a simple program about password length or any site reference.

View Replies View Related

Determining If A Field In A Database Is Empty Using ASP

I am trying to determine if a field in a database is empty or not. The code I have is this....

(before this I have code that opens up the database, gets the data from the table. the var "content" holds the data if any from the database.)

if content = "" then
alert1 = "content field is empty"
else
alert1 = "content field contains text"
end if

This doesn't seem to work. I also tried...
if (content) then
alert1 = "content field is empty"
else
alert1 = "content field contains text"
end if

No luck yet. Any ideas?

View Replies View Related

Determining Command Prompt Error

When I run the following code, i get an error:

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:

View Replies View Related

Script For Determining Server Uptime

is there a script on telling how long a server's been up? I want to put that on my site.. along with other nifty details.

View Replies View Related

Determining Active Dates For Queued Items?

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?

View Replies View Related

Add Trusted Zone From ASP?

Is it possible to add a domain name to trusted zones from an ASP page?

View Replies View Related

Clients Country

How can i obtain Clients Country

View Replies View Related

Getting Clients Country

what is the easiest way to get the clients country, wthout asking them for it is there a HTTP request?

View Replies View Related

Communicating Two Clients

I have to develop the game in asp.net which is played by two player (TIC TAC TOE GAME ) sitting on two different pc.

the problem that i am facing is that how i can refresh the page second player page when i recieve the request from first player and vice versa.

View Replies View Related

Parameter And Value Of Clients

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?

View Replies View Related

Number Of Clients On A Web Site

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)

View Replies View Related

Using A Clients Images In Website

I have web application that pulls in an image from a web users machine to include it in a preview

<input type="image" name="adimage" alt="user image" border="0" height="100" width="75" src="file://localhost/<%=strFullGraphicsPath%>" disabled>

is there anyway to extend this to be able to include images on a network share on the user's network?

View Replies View Related

Clients Updating Database

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.

View Replies View Related

Get Info From File On A Clients Computer

I´ve made a program and now i would like the users of the program to be able to download updates from my website.

I want the user to show where the EXE-file on their computer is, so i can check version number, size and name of the file.

Do i need the user to upload the file to the server first before i can check version number, size and name?

Can i do this without some kind of component? Code:

View Replies View Related

Save File From Webserver To Clients Pc

The client needs to save a file on his pc which is located on the server disk. What can be the solution for this?

View Replies View Related

Detect If Domain Is In User Trusted Zone

Is there a way to detect if the servers domain is added to the user's trusted zone?

View Replies View Related

No Session Data Being Passed Back To Clients

does anyone know why my session number doesnt stay the same when i pressed refresh?

it works on w2k, but not on w2k server

my programmer thinks that the IIS is not passing the session back to the client. is there a way to check or any other alternative for sessions?

View Replies View Related

ActiveX Component To Install EXEs On Clients

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.

View Replies View Related

How To Download A Complete Folder From Server To Clients Machine

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 .

View Replies View Related

ASP + Access Question (Determining The Last Id Generated By Access)

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....

View Replies View Related

Server Not Serving ASP To Some Clients? Including Server Itself!

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.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved