Get Todays date using FUEL PHP

<? $date = \Session::get_flash('date'); if($date) { $fdate = \Date::create_from_string($date, '%d/%m/%Y'); } $display = isset($fdate) ? date('d M Y', $fdate->get_timestamp()) : date('d M Y'); $set_date = isset($fdate) ? date('d/m/Y', $fdate->get_timestamp()) : date('d/m/Y'); ?> <input type="text" id="quickbook-picker" name="select-date" class="datepicker" value="<?= $display ?>" />
This snippet will generate todays date in the format d M Y = 13 Jun 2013 using the FUEL PHP framework.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.