Format Date in Rich Text Field

Stimulsoft Reports.PHP discussion
Post Reply
PeterG
Posts: 8
Joined: Sun May 25, 2025 8:22 pm

Format Date in Rich Text Field

Post by PeterG »

How do I format a date in RTF?

I'm getting: 12/31/2022 12:00 AM

I just want it to be: 12/31/2022
Lech Kulikowski
Posts: 7452
Joined: Tue Mar 20, 2018 5:34 am

Re: Format Date in Rich Text Field

Post by Lech Kulikowski »

Hello,

You can use any custom format as you need:
https://www.stimulsoft.com/manuals/en/u ... atting.htm

Thank you.
PeterG
Posts: 8
Joined: Sun May 25, 2025 8:22 pm

Re: Format Date in Rich Text Field

Post by PeterG »

But ho do I access that from within Rich Text?
Lech Kulikowski
Posts: 7452
Joined: Tue Mar 20, 2018 5:34 am

Re: Format Date in Rich Text Field

Post by Lech Kulikowski »

Hello,

For example, as follows:
text1 {column.ToString("MM/dd/yyyy")} text2

Thank you.
Post Reply