Project

General

Profile

Feature #558

DefaultNumberFormat and DefaultDateFormat

Added by Jeff Bader over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
velocity
Target version:
-
Start date:
09/28/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Access to i18n's locale-aware getters for default number and date formats would be nice for use by $number and $date format functions.

Might want to look at implementing default configs per the locale.

History

#1

Updated by Patrick Talbot over 11 years ago

  • Status changed from New to Closed

$number and $date are now Locale aware and uses internally method similar to utils.numberFormat() and utils.dateFormat()

Default format for dates and numbers will be the default for the Locale (without even setting it)
$number.format() will now also accept a number of decimals, for example $number.format(2, $yourNumber), as well as formats, for example $number.format('#,###.00', $yourNumber) (which will use the pattern according to the current Locale as well), $number.currency() and $number.percent() will also automatically use the client's Locale.

This is available in v2.0.19

Also available in: Atom PDF