| |
| |
Have you ever wanted to format a date in your ASP pages (using VBScript) to conform with RFC-822? These are required for various things but in particular they are required format for dates in RSS feeds. While I was producing some RSS feeds I couldn't find any functions that converted ASP dates to the required formats so I created the following functions to do it for you
|
|
|
| |
| |
This tutorial will show you how to display the current date with the ordinal suffix e.g. Wednesday 12th May
|
|
|
| |
| |
Following example displays usage of setDate method in JScript. 'setDate methods sets the numeric date of the Date object using local time.
|
|
|
| |
| |
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.
|
|
|
| |
| |
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.
|
|
|
| |
| |
This is an useful but not known functions. If you wish to learn month of date stored in a database, you may use this function placing in a 'SELECT' sql statement
|
|
|
| |
| |
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.
|
|
|
| |
| |
You may use DateDiff function in an SQL statement to get the number of date and/or time between two dates. You may calculate days between two different date. The return number of DateDiff function can be year, month, day, hour, minute, second ....
|
|
|
| |
| |
I will teach you how to use the Now() command and display it 24 times and all of them be different. Example: use the Now() command and get Monday, 1 July, 2003.
|
|
|
| |
| |
There are several different ways of displaying times. Using FormatDateTime and DatePart functions we can manipulate the time in many different ways.
|
|
|
| |
|