PBDOM_ATTRIBUTE:
SetDateTimeValue method
Description
Sets
the text value of a PBDOM_ATTRIBUTE object and creates
this text value by serializing the provided datetime value
into a string.
Syntax
1 |
<span>pbdom_attribute_name.</span>SetDateTimeValue(datetime <span>datetimeValue</span>, string<span> strDateFormat</span>, string<span> strTimeFormat</span>) |
Argument |
Description |
---|---|
pbdom_attribute_name |
The name of the PBDOM_ATTRIBUTE |
datetimeValue |
A datetime value |
strDateFormat |
The format in which the date part of |
strTimeFormat |
The format in which the time part of |
The value of the strDateFormat parameter
can use slashes or colons as delimiters. The following table illustrates
characters that have special meaning in strDateFormat.
Character |
Meaning |
Example |
---|---|---|
D |
Day number with no leading zero |
5 |
DD |
Day number with leading zero, if applicable |
05 |
M |
Month number with no leading zero |
5 |
MM |
Month number with leading zero, if applicable |
05 |
YY |
Two-digit year number |
05 |
YYYY |
Four-digit year number |
2005 |
The value of the strTimeFormat parameter
can include slashes or colons as delimiters. The following table
illustrates characters that have special meaning in strTimeFormat.
Character |
Meaning |
Example |
---|---|---|
H |
Hour number with no leading zero |
5 |
HH |
Hour number with leading zero, if applicable |
05 |
M |
Minutes number with no leading zero |
5 |
MM |
Minutes number with leading zero, if |
05 |
S |
Seconds number with no leading zero |
5 |
SS |
Seconds number with leading zero, if |
55 |
Return Values
PBDOM_ATTRIBUTE. The PBDOM_ATTRIBUTE from
which the SetDateTimeValue method was invoked.