I want the time to show in military format such that 1:00PM should appear as 13:00. When the user inputs 1:00 in the textbox, I wrote some codes in the textbox's LEave event to format the textbox into long time as below but it doesn't work. This code just truncates the
txtTime.text = FormatDateTime(txtTime.text,
all it does is change the time to include seconds such as 1:00:00 PM. but i don't want that. How do I format it to military time?