| Array() Function |
|
Arrays are good for storing small pieces of information to be used at any point. It is important to note that all arrays are zero based. Meaning that you count the first piece of the array is always 0 not 1. | | Array() Function II |
|
Here is another example of using arrays. As you can see the pieces are all put in a named array on one line. Small arrays can be handled and printed quickly and easily with only five lines of code. | | Cdate Function |
|
The CDate function will convert any valid time and date to a date. | | Date Function |
|
The Date function will return the system date to the page. | | DateAdd Function |
|
Learn to add and subtract dates and times using DateAdd function | | DateDiff() Function |
|
Using the DateDiff() function it's easy tofind out how much time has elapsed between two dates. From seconds to years or anything in between. | | DatePart() Function |
|
Learn to get part of the date from the DatePart Function using vbscript and asp. You can get any part of the date from seconds to year. | | DateValue() Function |
|
Using the Date Value Function you can represent any date/time format as a Short Date (VbShortDate) Format OR MM/DD/YYYY. | | Day() Function |
|
Use the Day() function to display just the day number. For example it will display 1 through 31 (or less depending on the month). Quick easy way to show just the day number. | | FormatDateTime() Function |
|
The FormatDateTime() Function will allow you to set the time up any way you like. Time, Date Date AND Time Etc. It allows for VbShortDate, VbLongDate, VbLongTime, VbShortTime and VbGeneralDate. | | Julian Date |
|
On occasion one will need to use the julian date from asp or vbscript. Here is a quick way to get the Julian Date. | | Minute() Function |
|
Use the Minute() function to display just the minute number. For example it will display 0 through 59. A quick and easy way to show just the minute number. | | Month() Function |
|
Use the Month() function to display just the month number. For example it will display one through twelve. Quick easy way to show just the day number. | | MonthName() Function |
|
By using MonthName() you can display the month as a string instead of a number. Either use the number of the month or incorporate the DatePart() Function. Display the whole name or the short name. | | Now() function |
|
Now() is just that, NOW. It cant get any simpler than that. The Now() function will return the current system time to the page. It can also be passed to databases etc... | | Second() Function |
|
Use the Second() function to display just the second number. For example it will display 0 through 59. A quick and easy way to show just the second number. | | Split() Function |
|
This example will show you how to split a string and turn it into an array. It matters not the size of the string, Split() will put it into a nice tidy array to use as you please. | | Time() Function |
|
Time() can be used to display just the system time. It can be done two ways. It can give the time as AM or PM or on a 24 hr format using the FormatDateTime funtion. | | Timer() Funtion |
|
Though I have never used it before, there is a way to tell exactly how many seconds after midnight it is. The Timer() Function will do this for you quick and easy. | | WeekDay() Funtion |
|
By using the WeekDay() Function you can get the day of the week number. 1 through 7. One being sunday of course. This is a fairly simple way to print just the number. | | WeekDayName() Function |
|
The WeekDayName() Function will display the name of the day of the week for you. You can do this by either entering a date or simply by using 1 through 7. | | Year() Function |
|
Use the Year() function to display just the year number. For example it will display 2003 or whatever the current system year is. Quick easy way to show just the year number. |