library id-date-formatter
Date formatter for Bahasa Indonesia
frosya-labs/id-date-formatter
Date formatter for Bahasa Indonesia
- Wednesday, July 26, 2017
- by nfrozi
- Repository
- 2 Watchers
- 3 Stars
- 38 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 19 % Grown
PHP Date Formatter for Bahasa Indonesia. The main usable methods were format() to format the date and now() to get the current date. All methods were defined static. So, yo don't need to create the object from IdDateFormatter class., (*1)
Usage
Example codes:, (*2)
use FrosyaLabs\Lang\IdDateFormatter;
$tanggal = '2016-02-17';
// Show current date, format: dd/mm/yyyy
echo IdDateFormatter::now().'<br>';
// Format $tanggal using complete format, ex:
// Rabu, 17 Februari 2016
echo IdDateFormatter::format($tanggal, IdDateFormatter::COMPLETE);
* For more information, please check the library's PHPDoc, (*3)