over 7 years ago
For make data more readable YII provide a application component name as 'formatter' by using this we can format our date,numbers,email.
How to use
$dataFormatter = \Yii::$app->formatter;
echo $dataFormatter->asDate('2016-01-01', 'long');
Out put will be : January 1, 2016
Out put will be : email@example.com
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2023 FindNerd.com. All rights reserved.
Sign up using