JasperPHP icon indicating copy to clipboard operation
JasperPHP copied to clipboard

Number and date format

Open allgood opened this issue 4 years ago • 5 comments

What is the best way (is supported any) to format monetary numbers and dates on the report?

allgood avatar Mar 03 '20 18:03 allgood

for example date fields use this dd/MM/yyyy numbers fields use #.##0,00 set this in pattern field of textfield properties

I will create a page with all supported formats and post in jasperphp.com

Rctnet avatar Mar 03 '20 19:03 Rctnet

you can check all suported formats in https://github.com/QuilhaSoft/JasperPHP/blob/c1637797822f1e4587e9fce16da1e87ed08ee568/src/Report.php#L454

Rctnet avatar Mar 03 '20 19:03 Rctnet

https://jasperphp.com/documentation/supported-date-and-numbers-formats/

Rctnet avatar Mar 05 '20 12:03 Rctnet

A doubt, I know there is the numeric format of latin formatting, but this does not maintain compatibility with jasper studio, but I know that when putting the latin format in jasperphp it works which is a beauty, but I've always been pressing on compatibility, so a question wouldn't a way to define the thousands and decimal separators be more coherent? or even set based on a language?

gamadoleo avatar Jun 19 '21 01:06 gamadoleo

the studio has the unique pattern formatting but it identifies the language and makes the adjustment automatically

gamadoleo avatar Jun 19 '21 01:06 gamadoleo