Show Only A and P in DateTime Format insteat of AM and PM

Stimulsoft Reports.NET discussion
Post Reply
ngaheer
Posts: 44
Joined: Sat Jul 22, 2006 1:12 am
Location: San Jose

Show Only A and P in DateTime Format insteat of AM and PM

Post by ngaheer »

Hi,

I have set the format of datetime field to {Format("{0:HH:mm t}", CmfActions.cmf.cmfStartTime)} this shows me result as "11:40 AM" but i want to show the result as "11:40 A" not the AM. So can you guide me which property or API i use to set this criteria.

Thanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Show Only A and P in DateTime Format insteat of AM and PM

Post by Edward »

Hello.

Please change the expression as follows:

Code: Select all

{Format("{0:HH:mm tt}", CmfActions.cmf.cmfStartTime)}
Please let us know if any help is required.

Thank you.
Post Reply