Skip to main content

There are two ways to format date range. For example:

Option- A: From controller. (const dob_change = new Calendar(currentCustomer.profile.birthday);)

 

Option- B: From ISML.  (<span class="dc-order-list__d"><isprint value="${pdict.birthDate}" formatter="yyyy/MM/dd" /></span>)

 

My question is which is better ? For time consuming or others efficiency. 

2 respuestas
  1. 4 ene 2022, 06:23

    According to me Option B - because it is handled client side and in future if you have multi locale, then you can control the format using the formatter.

     

    @Raihan MD Golam

0/9000