Subscribe
Tutorial search

ASP Date Tutorials


Sort by:
Ordinal dates (st, nd, rd, th)
Ordinal dates (st, nd, rd, th)
What is an ordinal date? Or more accurately; which part of a date is the ordinal? In answer the first question; an ordinal date is a date that is part of an order (in my layman’s understanding) that is “Tuesday the second of August”, “Wednesday the third of August”.
Difficulty:
Calculate time ago in asp
Calculate time ago in asp
Now a days we often see websites that show date in the form of time ago format e.g 2 Days 12 Hours Ago
Difficulty:
Add time period to date
Add time period to date
Add time period to date
Difficulty:
Displaying last modified date of any file
Displaying last modified date of any file
The scope of this code sample is focusing how to find and display of any file's last modified date & time. Probably, you've used to see some pages on web, written at bottom of page last modified date. Now we will create a simple code to do this.
Difficulty:
How to modify expire date of a cookie
How to modify expire date of a cookie
To create cookies in ASP is so easy. After creating cookies, you will store it in client's visitors. While creating cookies, you must notice to modify the expire date of cookies. Because life length of a cookies is in your hands. Dead or Alive!
Difficulty:
Displaying The Date And Time
Displaying The Date And Time
How to display the date and time in ASP, very simple functions.
Difficulty:
Dynamicly Changing Copyright
Dynamicly Changing Copyright
This ASP script will auto-update the year displayed, I have coded this for changing copyright but you could use it for practically anything.
Difficulty:
Executing Transact-SQL UPDATE statement
Executing Transact-SQL UPDATE statement
In this example, we will edit some records from a database. This source code helps us to edit records to database without slowing down database .
Difficulty:
Format Date and Time
Format Date and Time
This little tutorial will teach you how to easily play with date and time function in ASP.
Difficulty:
Date & Time
Date & Time
Show the server's current date and time in a formatted matter with ASP.
Difficulty:
Always Updated Copyright
Always Updated Copyright
Never worry about your copyright being out of date again.
Difficulty:
Prevent viewing of javascript and stylesheets
Prevent viewing of javascript and stylesheets
Prevent unauthorized viewing of website javascript and style sheet files. Simply rename all your style and javascript files to the .asp extension. Then include the validate_view.asp file at the top of each file. Open the validate_view.asp file and change the top the constants to those required. Then finally call the procedure name "validate_view" with the current files content type as the parameter.
Difficulty:
Validate logins with ASP, Access and cookies
Validate logins with ASP, Access and cookies
This script will validate form input against field in a database. The script will connect to the database and query the database fields - if the form input matches the database, a cookie will be allocated which will remain across any further ASP pages, until destroyed. Page views of admin or member pages can then be validated by checking for the cookie, if the cookie is found, the user can continue and if the cookie is not found, the user is redirected back to the login screen.
Difficulty:
ASP Authentication Using IP Address
ASP Authentication Using IP Address
This article explains how to control web application access by validating the user"™s login and password against a database using Active Server Pages. Once validated the IP Address of the user is ensure that the user has access to the database.
Difficulty:
Complete E-mail Validation
Complete E-mail Validation
If you use this code, with the changes suggested in the comments, you will be able to completely validate a submitted e-mail address. It checks for invalid characters, an invalid domain, and an invalid or missing MX record at the domain.
Difficulty:
Search Term(s) (1): date