Another way is to change your regional settings from control pannel to the country code you want. For example, set your regional settings to Swedish, then create an ASP page with following code and access it from your browser. It will return you the language code...
Above everything...
<%@LANGUAGE="VBSCRIPT">
<%
if (Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") = "da") Then
Response.Redirect("myserver/danish.asp")
Elseif (Request.ServerVariables("HTTP_ACCEPT_LANGUAGE") = "se") Then
Response.Redirect("myserver/swedish.asp")
End if
%>
<html>
<head>...
Hi,
I tried what you wrote, but i get an error. Here is the code:
sub TotalHours(StempId)
dim sessiontime, totaltime
sessiontime = "00:00"
totaltime = "00:00"
for i = 0 to StempMaxRows
if (StempArray(0,i) = StempId) Then
Response.Write(StempArray(1,i) & " - " & StempArray(2,i) &...
These are the class session for different course groups in our LMS systems, and i need to calculate the total hours of training provided for a given period of time. This function will be called for each course group containing 1 to many class sessions.
I mean everytime when i come in this loop, i should get the time (end_time - start_time) and that time should be added in total_time. this loop will run from 1 to 5 times, every time there will be timings of different sessions. (9:00 to 16:00 or 9:30 to 15:15 etc...) what i need to do is to call...
I guess i need a little more help. :D What i am trying is to loop through different session times and get the total hours of all sessions. i guess i also need a way to add the hours :-) please see below:
sub TotalHours(StempId)
dim c1time, c2time, totaltime
sessiontime = "00:00"
totaltime =...
Hi,
I have to calculate hours from given start and end time. For example:
Dim starttime, endtime, totaltime
starttime = "09:00"
endtime = "16:45"
' This is where i want to get the difference between above
totaltime = endtime - starttime
' The resulting value/string should be 07:45
Both...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.