How to set AM PM in Telerik reporting

1 Answer 121 Views
.NET Core CrossTab DataSource SQL Expressions HTMLTextBox
Khadeer
Top achievements
Rank 1
Khadeer asked on 02 Jun 2022, 08:54 AM
how to use AM PM date format in textbox
Neli
Telerik team
commented on 02 Jun 2022, 09:23 AM

Hi Khadeer,

Please, go to the Date & Time section of the Format Builder. You will see the PM format there. ANother option is to directly set the Format property of the textbox to {0:T}.

Please, give this a try and let me know how it goes.

1 Answer, 1 is accepted

Sort by
0
n/a
Top achievements
Rank 1
Iron
answered on 13 Feb 2024, 07:46 PM

Hello, 

  1. go to the properties of your control 
  2. set the following text in the property format: {0:MM/dd/yyyy hh:mm tt}
  3. "tt" is the am/pm
  4. now, select or type a valid culture, preferred spanish, in my case: es-PR

culture makes that "tt" be recognized as am/pm

 

Tags
.NET Core CrossTab DataSource SQL Expressions HTMLTextBox
Asked by
Khadeer
Top achievements
Rank 1
Answers by
n/a
Top achievements
Rank 1
Iron
Share this question
or