Date/Time format question

G

Guest

Hi, All
I need to convert short time to long time and display it w/o seconds
I don't want to use this -> FormatDateTime(dt, DateFormat.LongTime)
it return seconds
here is example:
dt.ToString("MM/dd/yyyy HH:mm") it displays short time
Is it possible to display long time w/o seconds
dt.ToString("hh:mm ...PM/AM ?")
i need result something like - 01:35 PM

Please, advise
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

AM PM does not appear on page 9
date and time difference 19
DateTime issue 1
DateTime issues 2
Displaying time without seconds 1
Time format 1
Working with Date/Time 1
Date format problems after csv import 2

Top