Subscribe
Tutorial search

Calculate time ago in asp - ASP tutorial


Now a days we often see websites that show date in the form of time ago format e.g 2 Days 12 Hours Ago
Category: ASP > Development - Difficulty:


More cool ASP tutorials:



Dynamic Excel Reports with ASP
Dynamic Excel Reports with ASP
This tutorial shows a quick and easy way to generate Excel reports using just ASP. It allows the server to dynamically create Excel reports without taking up any space on the server, and also allows multiple concurrent users to receive these reports simultaneously. The generated reports can be complete with Excel formulas, which allows intensive calculations to be moved to the client side. This method only works with Excel 97 or later.
Difficulty:
Making the Switch from ODBC to OLE DB
Making the Switch from ODBC to OLE DB
ODBC is great and all but for speed and reliability you should switch to OLE DB to power your database driven apps. This tutorial will show you how to do it two ways: in the global.asa and in any ASP page.
Difficulty:
Ignoring clicks from IP addresses
Ignoring clicks from IP addresses
One requirement of the CoverYourASP advertising system is that multiple clickthroughs from the same IP address on the same day will be ignored. Another way to stop spiders is by testing the HTTP_USER_AGENT.
Difficulty:
Email Validation
Email Validation
This code sample demonstrates how to validate an email address using regular expressions. It ensures that an email address is properly syntaxed and ends with a valid TLD (top level domain).
Difficulty:
Connections And Server Database Permissions
Connections And Server Database Permissions
This is an overview of SYSTEM DSN's, DSN-LESS Connections, and any database permissions that may need to be set on the server. Helpful for people just learning ASP as well as people with some experience.
Difficulty: