Hi,
You can try following two options:
[1]{"H:mm"}
Use uppercase H to display times based on the 24-hour clock (military
clock). Uppercase H displays single-digit hours as single-digit numbers,
without a leading zero.
[2]{"HH:mm"}
Use uppercase HH to display times based on the 24-hour clock (military
clock). Uppercase HH displays single-digit hours with a leading zero.
Thanks and Regards,
Manish Bafna.
MCP and MCTS.
"Phillip Vong" wrote:
> Simple question from a newbie. Using VWD in VB.NET for ASP.NET.
>
> I want to format a time value to show in military time only and without the
> seconds. I know it's not {0:t} or {0:T} but I can not figure out what it is.
> If it's 3:25 PM, I want it to show 15:25 only and without the seconds. This
> is what I found, but it did not provide me with the Military formating.
>
> http://datawebcontrols.com/faqs/Cust...TimeData.shtml
>
> Thanks!
>
> Phil
>
>
>