Finding Every Monday Of A Given Time Period
i'm trying to display the number of occruances of an event during each week of a given month. basically, i'm looking for code that finds every monday of a given month.
View Repliesi'm trying to display the number of occruances of an event during each week of a given month. basically, i'm looking for code that finds every monday of a given month.
View Repliesif anyone can point me in the right direction or has code on this. i'm trying to display the number of occruances of an event during each week of a given month. basically, i'm looking for code that finds every monday of a given month.
View Replies View Relatedif anyone can point me in the right direction or has code on this. i'm trying to display the number of occruances of an event during each week of a given month. basically, i'm looking for code that finds every monday of a given month.
View Replies View RelatedI am making a game with asp. And i wondered if anyone could make something with asp that could give my users 1,000 gold and 1 attack turn every 16 minutes?
View Replies View RelatedI need to remove a period from a string of data. I have a whole column
of numbers that have a period distributed randomly in them, and I need
a way to pull the period out. Unfortunatly, the period is not at a
fixed interval from the start or from the end. Sometimes it's like
this: 08307.33214
and sometimes it's like this: 66543354.2213
At any rate, I have a whole column of these in SQL Server 7.0 and need
to use the number as is for some issues, but without the period for
others.
Can someone please show me how to write a function that will remove
the period no matter where it is located in the string?
I'm trying to remove a period in a username. For instance, I want:
First.Last to look like FirstLast
How can I select period of date form another period of date?
For Example: I wanaa select 14/2/2006 - 17/2/2006 form 1/1/2006 - 18/3/2006.
On my page I need to always show the current week's Monday Date. For instance, this week, Monday was 11/22/2004. How can I figure this out knowing only today's date.
Doing this:
<%=WeekDay(Date(), VBMonday) %>
Returns:
2
How can I get an actual date?
I need to schedule a mail to be sent to the client on every monday....
View Replies View RelatedDo you know how will I find the first monday and the last friday of a given month in asp?
View Replies View RelatedThe thing is I want to create a Last updated script that updates the page dynamically diplaying each days date except saturday/sunday if found that
weekdayname(weekday(now))
displays the current day by the name so I guess if i use something like this will work?
PHP Code:
if not weekdayname("Saturday") or weekdayname("Sunday") then Response.Write(day(now) month(now) year(now)) end if
I'm trying to use DatePart and Datediff functions to show the formatted m/dd/yyyy display for the dates of Monday and Friday of the current week. I want it to display as:
Our Weekly Schedule 8/23/2004 thru 8/27/2004:
Can't pinpoint the parameter to check for the current week. Is there a good reference anywhere to show how to use the methods and such of both datepart and datediff, or has anyone programmed something similar prior.
I have a database with date of births stored dd/mm/yyyy (english dating
system) and =date() returns a date in the same format in my server.
how do i find the persons age using these two pieces of date.
i want to make a program to find out and highlight a particular word on the browser using ASP and javascript.
View Replies View RelatedIs there something similar to PHP's php_info command to tell me all about the server? I need to find the actual path where the site resides.
View Replies View RelatedI need to create a new application in our test server. I am using VID for
that purpose. In order to set up the project in VID, it asks me 'which server
you want to use'. However, I do not have the name of the test server. Is
there any way to configure the name of the server here? I have full rights to
the server directory and is mapped on my machine as G drive.
Here is a function where you don't have to worry about the leap year.
You will have to still be aware of time differences between you and
the server, and correct your data before entering it into the
function. And of course time zones, yada yada ....
BUT I think that most people using this will just want to say if today
is there bday than they are their new age. Code:
How can I programatically ascertain what version of ASP my ISP has installed ?
View Replies View RelatedI need help to find percentages, because I missed out on a lot of basic math education, I need it to be real clear step by step instruction for instance how would I go about finding 24 out of 32 one step at a time?
View Replies View Relatedi know how to find the available server names, how can i find the ports?
View Replies View RelatedI am developing a hotel finder solution in Canada. When some one enters a Postal code, it should be able to display the hotels in 5 KM radius. (With nearer PIN numbers?) I am deleloping this application using ASP, and is there anyway I can such searches?
View Replies View RelatedI trying to find the memory occupied by the object in RAM, For Example:
Set ObjTest = Server.CreateObject("ADODB.RecordSet")
I need the space occupied by the ObjTest in RAM. Is it possible ?
I am trying to find total number of parts in the database for a user by using the COUNT function:
max = HelpDesk.Execute("SELECT count(PartRef) AS 'maximum' FROM MISC_PartInfo WHERE Username = '" username "'")
but when i try to output the result by:
Response.Write max("maximum")
I get the error:
Item cannot be found in the collection corresponding to the requested name or ordinal./Intranet/test/PartInfo.asp, line 82
one cant do a straight division because if i have 20 per page and 22 records, that's two pages. best i've come up with so far is
Code:
iPageCount = fix(iNumRecords / iPageSize)
if( iNumRecords mod iPageSize > 0 )then
iPageCount = iPageCount + 1
end if
anyone managed it better? is there a function like fix that forces a round up?
How do I find the maximum value of a recordset column? I'd rather do it this way than open a new recordset with Max(column).
View Replies View RelatedI'm creating an array from the querystring, then I want to find if something is in that array..
url = quiz.asp?done=6|3|4
done = Request.QueryString("done")
myArray = Split(done,"|")
For Each i In myArray
If myArray(i) = x Then
do something
End If
Next
I keep getting a "subscript out of range error"
I have a form. When I do action="POST" I can see the changes done by looking at ---- for example request("MyBox")
Where MyBox is a dropdown box and by doing request("MyBox") I get the selected value.
Is there a way I can get the number of requests done? (i.e if I had 3 dropdown boxes then I get 3).
Also is there a way to get a list of the names of all the requests (i.e if I had 3 dropdown boxes then I get MyBox1 MyBox2 MyBox3)
I have a section of code that is supposed to search through a DB comparing a field of when the record was added. Its supposed to find the latest record and move to that record so it can process some other code:
View Replies View RelatedHeres what im trying to do, I have mssql databse full of about 15,000 item ID codes. For Example of the ID Code:
The first 2 sometimes 4 letters represents the distributor name, the numbers are the item number and BX for example means Box.
DJ3726
DJ3847BX
DJ3743CD
PD2374
PD2334
PD4334BX
And I have about 15,000 images from my distributrs that mostly match up to the actual ID number, but still a lot dont match up because of a small extra letter like BX Or somehting like that.
So what ive done was write a code that Splits out the Manufature code for example DJ from DJ3726BX, and also the same for the item ID 3726 from DJ3726BX, So when I put thos to together I get just the manufature name and ID code instead of the extra crap I dont need.
And now I take just the Manufacutre name and ID and looping through my database and all of the (images via File Scripting Object).
Then I check to see if the manufacure code and ID is in the item name. For Example
Check if DJ74637
IS In: DJ74637BX.GIF
Then if it finds a match it gos and renames the gif for me. And it loops through untill its done.
My problem is that it just doesnt work, no errors no anything it just doesnt pick up any images when I can visualy go through my self and find some matchs.
Heres my code that I came up with so far ....
How can I find out the full directory path (i.e. c:path ofile) of a file? I'm logged into a server and the of course, I have an FTP directory root, but I need to know the absolute path.
View Replies View RelatedI have this page that gets a list of catagories from the database and displays them with there id numbers in a select box like this
<select name="catagories">
<option value="1">Catagory 1</option>
<option value="2">Catagory 2</option>
</select>
Then I post it to another page to process the information. This is written in asp and vbscript.
I open a dsnless adodb connection to the database then use it to create a recordset for the catagories table.
the problem is when I check the idnumbers in the database with the one posted selected by the user in the previous page none of them match. Code:
I am using Request.ServerVariables("SCRIPT_NAME") to get the extention from the url and need to know if I am in the root or down a directory. i have two folders, one called 'local' and one called 'group'
View Replies View RelatedI'm using vbscript in ASP to loop through and rename the files passed to it in a form. When I output the text to the screen of the filenames etc it's all working fine.
However, when I try to get the rename code working, if I select more than one, ASP tells me the 2nd/3rd etc file does not exist. The first one always renames ok.
I presume this is something to do with the Server.MapPath, but what exactly I have no idea! My code is below, can anyone see what I'm doing wrong? Code: