NEW LISTINGS  HOT LISTINGS  TOP RATED  EDITOR PICK  ADD A LISTING  UPDATE A LISTING  GET RATED  UPGRADE A LISTING
  HOME     MY ACCOUNT     POWER SEARCH     REGISTER     MEMBER LIST     SUGGEST CATEGORY  

Browse a Listing

Subscribe to this category

Top > ASP > Tips and Tutorials > Date and Time

Popular Tags

Free Script links
Sort By :
With DatePart() function in VBScript language you could take only some parts of current time and display/use in your applications. Following examples will show you and give a brief on this function. .
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 16 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

In this tutorial we will compare dates. We will use DateDiff function. You may compare any two valid dates calculation year, day, month, week, minute ans seconds.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 6 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

ASP has a very handy inbuild function called FormatDateTime(). Let's start with the now() function to get the current date and time into a variable
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 11 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

The Now() command is a great thing, but sometimes you need to display it different, this is how. Try the following.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 1 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

When inserting a date into an Access database you should use the format YYYY-MM-DD. The function AccessDate returns a date in YYYY-MM-DD format.
When working with a date in Access always use the # delimiters in your SQL statement.

The database is called 'dbDate', the table 'tblDate' and date field 'dDate'. The 'dDate' field is a DATE/TIME datatype.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 8 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

This tutorial will show you how to display the current date with the ordinal suffix e.g. Wednesday 12th May
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 1 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Following example displays usage of setDate method in JScript. 'setDate methods sets the numeric date of the Date object using local time.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 4 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

DatePart function is a very useful function to get the a part of a date. You may get year, month, day of year .. etc. of a specific date.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 3 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

In this source code, you may see how can you display date in diffrent formats. This simple ASP code displays current time in short, long and regional settings.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 6 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

This function is very useful, if you wish to get date of current SQL server date and time. You may use this function to fill some rows automatically with current time or using with DateDiff function to return the number between current time.
Category:

Write a Review   Add Favorite   Refer it to Friend   Report Broken Link  
Date Added: Oct 10, 2006 Hits: 11 Rating: 0.00 Votes: 0

Member Reviews Visitor Ratings Google PR

Pages: 1 2 [Next >]

Category Jump :