Format Property [AutoAxisDateTime]
The Format property returns or sets date/time label format. Returns a Long.
Syntax
object.Format
object.Format = Format
Parameter | Type | Description |
Format | Long | required, see remarks |
Remarks
Accepted values for Format include:
m/d/yy = 0
mm/dd/yy = 1
mmm dd, yyyy = 2
mmmm dd, yyyy = 3
d-mmm-yy = 4
d-mmm = 5
mmm-yy = 6
mmm-yyyy = 7
mmmm-yyyy = 8
h:nn AM/PM = 9
h:nn:ss AM/PM = 10
hh:nn = 11
hh:nn:ss = 12
m/d/yy hh:nn = 13
yyyy = 14
yy = 15
mmmm = 16
mmm = 17
mm = 18
m = 19
dddd = 20
ddd = 21
dd = 22
d = 23
d/m/yy = 24
dd/mm/yy = 25
yy/mm/dd = 26
yyyy-mm-dd = 27
Example
This example sets the date/time labels to show in the format mmm dd, yyyy.
Labels.DateTime.Format = 2
Used by: AutoAxisDateTime object