DynuDateTime ASP Component
Installation
You must install DynuDateTime.dll on the server computer which has ASP pages which use it. Copy DynuDateTime.dll to c:\winnt\system32 or the corresponding system directory. On command prompt type "regsvr32 DynuDateTime.dll". DynuDateTime component is now ready to use.
Sample ASP code
set mydatetime =
Server.CreateObject("DynuDateTime.Functions")
REM the below line of code will get the current day as an integer
mydatetime.GetDay()
set mydatetime = nothing
DynuDateTime component has 20 methods. Listed below are all the methods with their syntax. Please feel free to email our technical support staff at support@dynu.com for further information. This version of component is a free trial version and will expire on 11/30/99.
Code |
Description |
%a |
Day name, abbreviated (such as Sat for Saturday). |
%A |
Day name, no abbreviation. |
%b |
Month name, abbreviated (such as Mar for March). |
%B |
Month name, no abbreviation. |
%c |
Localized date and time (for the U.S., that would be something like 03/17/99 12:15:34 |
%d |
Day of the month as a number (01-31). |
%H |
Hour in the 24-hour format (00-23). |
%I |
Hour in the normal 12-hour format (01-12). |
%j |
Day of the year as a number (001-366). |
%m |
Month as a number (01-12). |
%M |
Minute as a number (00-59). |
%p |
Localized A.M. /P.M. indicator for 12-hour clock. |
%S |
Second as a number (00-59). |
%U |
Week of the year as a number (00-51, considering Sunday to be the first day of the week). |
%w |
Day of the week as a number (0-6, with Sunday being 0). |
%W |
Week of the year as a number (00-51, considering Monday to be the first day of the week). |
%x |
Localized date representation. |
%X |
Localized time representation. |
%y |
Year without the century prefix as a number (00-99). |
%Y |
Year with the century prefix as a decimal number (such as 199). |
%z |
Name of time zone, abbreviated. |
%Z |
Name of time zone, no abbreviation. |
%% |
Percent sign. |