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
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.