The Following code will print out the date so that it's in a long date format including the appropriate suffix - i.e st, nd, rd. Here's the code in action: Thursday 12th May 2005
This script contains two functions (Leap Year Capable): First will check to validate a date value passed as a parameters. Second will check to validate two dates entered and compare/check first occurs before the second. Functions will return a blank string if the Date(s) is/are valid. They will retun a string containing an error message if Date(s) is/are NOT valid. You could pass the field name as parameter to generate a custom Error message for the field you are checking or pass a blank string as a field name to generate a generic error message.
StrongCube Tools Component helps you to format your number and date/time into VB style formatting routine. You can easily format your number into #,##0.00 or your date/time into dd/mm/yyyy.
ECS DateTime is a server-side component that can be used to access NTP Servers. It can be implemented on ASP pages or from any other COM enabled environment.
Based around the functionality of the PHP date() function, it returns date and time information in a format based upon arguments it is fed. Essentially, it takes one date string/object and transforms it to a different format. The ASP FormatDateTime function is extremely limited. This provides an alternative which gives you far greater control over how the date is returned.
One of the things missing from the current version of ASP is the ability to
get the date/time a file was LastModified. Sometimes it is useful to report the
date/time the ASP file was last physically modified. This component is designed
to provide that information.
Using this component you can perform date and time formatting, calculate elapsed time, pause your ASP application, GMT date and time formating and much more.