Dynamicweb Namespace : Dates Class |
The following tables list the members exposed by Dates.
Name | Description | |
---|---|---|
DateFormatString | Returns a string for String.Format: "ddd, dd MMM yyyy HH':'mm" | |
DateFormatStringDayAndMonth | Returns a string for String.Format: "dd. MMM" | |
DateFormatStringFull | Returns a string for String.Format: "ddd, dd MMM yyyy HH':'mm':'ss" | |
DateFormatStringShort | Returns a string for String.Format: "dd MMM yyyy HH':'mm" | |
DateOnlyFormatString | Returns a string for String.Format: "ddd, dd MMM yyyy" |
Name | Description | |
---|---|---|
AddZero | Adds preceding '0' for digits below '10' | |
DateSelect | Overloaded. Returns a set of drop downs for date and time selection. | |
DWDate | Overloaded. Returns system date in this format: "yyyy-mm-dd" | |
DWDateLong | Returns input date and time in the format: "yyyy-mm-dd tt:mm:ss" | |
DWDateLongClean | Returns input date in this format: "yyyymmddttmmss" | |
DWNow | Overloaded. Returns system date and time in the format: "yyyy-mm-dd hh:mm" | |
GetDayName | Returns long or medium length name of weekday | |
GetMonthName | Returns long or medium length name of month | |
GetWeeknumber | Returns the number of the week based on the current culture of the thread. | |
LongDay | Returns long name of day. | |
LongMonth | Returns long name of month | |
MaxDate | Returns the maximum DateTime value accepted by a system. | |
MedDay | Returns medium length name of day | |
MedMonth | Returns medium length name of month | |
ParseAsDate | Returns date and time from drop downs created with DateSelect | |
ParseDate | Returns date and time from drop downs created with DateSelect | |
RoundHour | Rounds an hour to e.g. 02:00. | |
RoundMinutes | Rounds minutes to e.g. 00:07. | |
ShowDate | Overloaded. Shows a date in chosen format. | |
ToDate | Convert string to Date. Convertation is performed using yyyy-M-d H:m or yyyy-M-d format. if it fails, return value is result of applying CDate function to the argument. If it also fails, return value is DateTime.Now |