your date format is wrong
you probably meant
<mx:DateFormatter id="dateFormat" formatString="MMM DD, YYYY HH:NN" />
You, sir, are a gentleman and a scholar. It worked as expected. I don't know why the format string didn't treat the "MM" as the month, but perhaps it is because the string already included a month piece. I have seen examples of literals included in the string as well, but all is well that ends well.
Never mind this post.
The problem was I was using "Adobe Flex 3 Bible" by David Gassner. He got it wrong in the book (page 337) where he said "H" was for the hour as a 12-hour format. It's not. That code is "L".
New question on this.
I have the format string:
formatString="MMM DD, YYYY HH:NN A"/>
I assumed the "HH" part would return the hour in 12 hour format. But I was wrong as I see it in 24 hour format as if I had entered:
formatString="MMM DD, YYYY JJ:NN A"/>
How can I get it to say 5:20 PM instead of 17:20 PM?
BTW, I tried it with one "H" and there was no difference.
1 person found this helpful
As you said in your post L is the 12 hour format
JJ is 24 hour format 0 indexed
HH is 24 hour format 1 indexed
KK is 12 hour format 0 indexed
LL is 12 hour format 1 indexed
so you want
formatString="MMM DD, YYYY LL:NN A"