Date and Time with ASP | |
| << Main ASP Directory | |
| Page : 1 | 2 | |
| 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. |
| 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. |
| Dates and Times | |
| This FAQ discusses how to create variables that represent date/time. Also discussed are common functions to manipulate date/time variables! (7 FAQs) |
| Display Date and Time in Many Formats | |
| The following functions explains on how you can display a date ot time in many formats using FormatDateTime function. FormatDateTime takes two input paraemeters, a required date variable and an optional date format. |
| Displaying the servers current date | |
| A simple routine to display the current date of the server in the clients browser |
| Format Date | |
| This is the code from the article about date formatting. Display dates in different formats. |
| Formatting Dates | |
| Show dates in a user friendly matter using ASP. Instead of Now() you can ofcourse request a date from your database. |
| Formatting Dates by Christiaan Mourik | |
| Many times when I tried to display the date in a user friendly format, I did that using a huge javascript. But then I found the date format code for ASP. |
| Page : 1 | 2 |
Get the best asp web hosting provider now and save 30%
Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.