Learn the different date and time functions in asp and vbscript. Display the date or time in any format either in whole or in part.
True Type Fonts
Download thousands of free fonts.
Download Here.
Device Drivers
DirectX
VBrun Files
By Peripheral:


All Drivers
Dll Search
Download Dll Files
Enter The Dll Name:
Paco's Screensaver
Download The Official Paco's Drivers Screensaver.
Check It Out
Computer Maintenance
File Systems
Hardware
Over Clocking
Registry
Surf 2X Faster
Desktop Enhancements
Anime
Icons
Screensavers
Themes
Site Search:

Free Software
Anti-Virus
Audio Tools
E-Mail Clients
Firewalls
Graphic Editors
Web Development
ASP/VBScript
CGI Script
HTML
JavaScript
Paco's Own Scripts
Webmasters Tools
Were Listed @

Aspin.com

ScriptSearch.com

Date and Time
Main Directory
Page : 1 | 2 | 3 | 4
Copyright Auto-Update Script 
Never update your copyright again! This quick little script will do it for you.  
Playing With Dates 
There are several different ways of displaying dates. You can also add and subtract from them as well. Using the FormatDateTime function we can display dates in any manner. 
Playing With Times 
There are several different ways of displaying times. Using FormatDateTime and DatePart functions we can manipulate the time in many different ways. 
A clock with images 
In this example we will create a clock which displays the time using images , sounds impossible well stay tuned its really quite simple  
Adding / subtracting to a date / time 
Thankfully this is an easy task with VBScript thanks to the DateAdd() function , lets take a look at some examples . In all cases we will take the date which is now and add / subtract from it. 
Calander Sample Code 
I just love the Microsoft Calendar ActiveX Control. It's a great way to quickly add some really cool features to an application, but guess what, as usual it only works in IE! Yes I know you can get the ActiveX plug-in for Netscape to get ActiveX to run, but what percentage of your users have it? More importantly, if they don't have it are they gonna go get it and then come back to your site, or are they just going to go someplace else? 
Calculating intervals between two dates (Interesting Example) 
The DateDiff() function returns the value of intervals between two dates. You can use many timeintervals with it as explained in detail in the code below. You can use it in the following format. 
Check if a date is valid 
Ok a user has to enter a date in a form how do we check the data is valid . Here is our script 
Checking Dates 
A lot of people tend to put dates in drop down list boxes so that users have no way to format the date wrong. There is nothing wrong with that approach though it is not really needed as valaditing dates is very simple using the IsDate() function  
Date diff example 2 
this example takes a given date and then works out whether a user is under a certain age , in this case 16 years and then prints a message on the screen depending on whether this is true or false . You could redirect users to different pages instead 
Page : 1 | 2 | 3 | 4
Search The Web Using Paco's MetaSearch
  
any   all   phrase
 About  Factmonster  AlltheWeb   
 MSN  Yahooligans      
Arts
Movies, Television, Music...
Business
Jobs, Industries, Investing...
Computers
Internet, Software, Hardware...
Games
Video Games, RPGs, Gambling...
Health
Fitness, Medicine, Alternative...
Home
Family, Consumers, Cooking...
Kids and Teens
Arts, School Time, Teen Life...
News
Media, Newspapers, Weather...
Recreation
Travel, Food, Outdoors, Humor...
Reference
Maps, Education, Libraries...
Regional
US, Canada, UK, Europe...
Science
Biology, Psychology, Physics...
Shopping
Autos, Clothing, Gifts...
Society
People, Religion, Issues...
Sports
Baseball, Soccer, Basketball...
World
Deutsch, Español, Français, Italiano, Japanese, Nederlands, Polska, Svenska...
Help build the largest human-edited directory of the web
Stop Popups
Paco's Popup Plucker.
Eliminate those pesky popups!
Users Online
Currently 13 users at PacosDrivers.com
Paco's Online

Send this page to a friend
Report Broken Links
Invalid path or path does not have write access: D:\www\dtruman\pacosdrivers.com\wx\weather\
Hosted By
ChamberGates

Privacy Policy
Best Viewed At 1024 X 768 Or Higher
Copyright © 2000-2010 Pacosdrivers.com. All Rights Reserved.