4

I am trying to format my DateTimeAxis label in the formatted string of hh AM/PM. Does anyone know, how to format DateTimeAxis in hh AM/PM ? Per their documentation they allow these formatting styles.

yyyy year “2011”
yy year “11”
MM month “01”
MMM month “Jan”
MMMM month “January”
w week number “4”
ww week number “04”
dd day “26”
hh hour “04”
HH hour “16”
mm minute “37”
ss seconds “23”
yyyy-MM-dd “2011-01-26”
MM/dd/yyyy “01/26/2011”
Santosh Thapa
  • 137
  • 1
  • 1
  • 7

1 Answers1

0

You can use tt from the Custom Date and Time Format Strings (like Ben already pointed out).

When the DateTimeAxis formats a value it passes your formatstlye to String.Format (Source) - so any valid format string should work.

dd4711
  • 789
  • 6
  • 18