PHP Classes


Recommend this page to a friend!
  Classes of Nanang F. Rozi  >  Id Date Formatter  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Id Date Formatter
Format dates for Bahasa Indonesia
Author: By
Last change:
Date: 4 years ago
Size: 648 bytes


Class file image Download


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.


Example codes:

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

For more information send a message to info at phpclasses dot org.