PHP code example of conquer / momentjs
1. Go to this page and download the library: Download conquer/momentjs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
conquer / momentjs example snippets
\conquer\momentjs\MomentjsAsset::register($this);
use conquer\momentjs\MomentjsAsset;
MomentjsAsset::$language = 'de'; // another locale
MomentjsAsset::$language = false; // no locale
MomentjsAsset::$allLocales = true; // all locales (~370 KB), e.g. to call moment.locale() in the browser
MomentjsAsset::fromPhpFormat('D, jS F Y H:i'); // "ddd, Do MMMM YYYY HH:mm"
MomentjsAsset::fromPhpFormat('Y-m-d\TH:i:sP'); // "YYYY-MM-DD[T]HH:mm:ssZ"