Skip to content

Instantly share code, notes, and snippets.

@dgleba
Last active December 23, 2015 00:09
Show Gist options
  • Save dgleba/6551417 to your computer and use it in GitHub Desktop.
Save dgleba/6551417 to your computer and use it in GitHub Desktop.
1 - Question test q p pic1
1 - Question
test
q
p
pic1
<div data-role="fieldcontain">
<label for="datetime-l">Datetime local:</label>
<input type="datetime" name="datetime-l" id="datetime-l" value="<?php
$date1 = new Datetime($rrecord->strval('datenote'));
echo $date1->format(DateTime::ISO8601);
?>" />
</div>
<div data-role="fieldcontain">
<label for="datetime-2">Datetime local:</label>
<input type="datetime-local" name="datetime-2" id="datetime-2" value="<?php echo $rrecord->strval('datenote') ?>" />
</div>
<?php echo "debug datetime prefill from database"; ?>
<?php
echo "<br/>rrecord strval('datenote') = ", $rrecord->strval('datenote');
$date1 = new DateTime($rrecord->strval('datenote'));
echo "<br/> date1 format(DateTime::ISO8601) = ", $date1->format(DateTime::ISO8601);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment