Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2017-11-07 (2 years ago) ![RSS 2.0 feed](/graphics/phpclasses/rss2.png) | | Not yet rated by the users | | Total: 40 | | All time: 9,812 This week: 370![Up](/graphics/phpclasses/up.png) |
|
Description | | Author |
This package is specific mainly for applications used in Indonesia ![Indonesia Indonesia](/graphics/countryflags/ID.png) .
This package can format dates for Bahasa Indonesia.
It can take a given date or use the current date and returns the data formatted for the Indonesian language.
The format of the dates to be returned is configurable. Innovation Award
![PHP Programming Innovation award nominee PHP Programming Innovation award nominee](/award/innovation/nominee.gif) December 2017
Number 8 |
Bahasa is known as the Indonesian language. It has its own formatting rules for text and other types of values.
This class can format date in Bahasa in a configurable way.
Manuel Lemos |
| |
![Picture of Nanang F. Rozi Picture of Nanang F. Rozi](/picture/user/564011.jpg) |
|
Innovation award
![Innovation award](/graphics/phpclasses/innovation-award-logo.png) Nominee: 1x |
|
Details
id-date-formatter
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.
Usage
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
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.