Last active
December 23, 2015 00:09
-
-
Save dgleba/6551417 to your computer and use it in GitHub Desktop.
1 - Question test q p pic1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 - Question | |
test | |
q | |
p | |
pic1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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