• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Ext.util.format.number - Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ext.util.format.number - Question

    I am using Ext.util.format.number to render a Year/Month stored in a table. Is there a way to replace the decimal place in a format with a slash? I can get it to display as 9999.99, but I want to display it as 9999/99. Below is an example. Thanks in advance for your help.

    Example: 201806
    return Ext.util.Format.number((value/100), '0000.00');
    Displays: 2018.06

  • #2
    Yes, before calling Ext.util.Format.number try placing the following code:

    Code:
    Ext.util.Format.decimalSeparator = '/';

    Comment


    • #3
      That worked great. Thanks Sean!

      Comment

      Working...
      X