I have a datetime string. How do I format it for output?
Posted on 2011-10-14
Hey guys. I thought this should be an easy one but its turning out not to be.
This is my issue in its most basic form: I want to write raw HTML so that when I open that HTML my predefined datetime is output based on a format I also have defined.
So for example, lets say my datetime string is 2011-08-13 10:15:39.000.
When I load my page into IE, I want the page to show 10:15.
Thats it. I was expecting to find something like what we have for numbers. I was expecting this would/should work: <format:"hh:mm">2011-08-13 10:15:39.000</format> but obviously it doesn't.
So how do I do it? Thanks!