Displaying time without seconds

W

wmdmurphy

In a form control I would like to display the date and time in this format
without seconds:

mm/dd/yy hh:mm PM

However, general date and time does include the seconds. Is there a way to
customize the display format to omit the seconds?

Bill
 
M

Marshall Barton

wmdmurphy said:
In a form control I would like to display the date and time in this format
without seconds:

mm/dd/yy hh:mm PM

However, general date and time does include the seconds. Is there a way to
customize the display format to omit the seconds?


Use a custom format like:

mm/dd/yy hh:nn AM/PM

See Help on "Format Property" for details on xreating custom
formats.
 
F

fredg

In a form control I would like to display the date and time in this format
without seconds:

mm/dd/yy hh:mm PM

However, general date and time does include the seconds. Is there a way to
customize the display format to omit the seconds?

Bill

You're not limited to the built-in formats.
On the Format property line of the control on the form, write:

mm/dd/yy hh:nn AM/PM

notice the "n" designates minutes, "m" designates months.
 
Top