Created
October 25, 2015 13:53
-
-
Save anonymous/5e754e99c54e515a7770 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/duyawu
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.date{ | |
background: #8c8c8c; | |
padding: 5px; | |
margin-top: 10px; | |
display: block; | |
color:white; | |
font-weight:bold; | |
} | |
</style> | |
</head> | |
<body> | |
<p>Today Is :<br><span class="date"></span></p> | |
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script id="jsbin-javascript"> | |
var time = new Date(); | |
date = time.getDate(); | |
month = time.getMonth(); | |
year = time.getFullYear(); | |
watch =time.getTime(); | |
$(function(){ | |
$('.date').text(date + " - " + month + " - " + year); | |
}); | |
</script> | |
<script id="jsbin-source-css" type="text/css">.date{ | |
background: #8c8c8c; | |
padding: 5px; | |
margin-top: 10px; | |
display: block; | |
color:white; | |
font-weight:bold; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var time = new Date(); | |
date = time.getDate(); | |
month = time.getMonth(); | |
year = time.getFullYear(); | |
watch =time.getTime(); | |
$(function(){ | |
$('.date').text(date + " - " + month + " - " + year); | |
}); | |
</script></body> | |
</html> |
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
.date{ | |
background: #8c8c8c; | |
padding: 5px; | |
margin-top: 10px; | |
display: block; | |
color:white; | |
font-weight:bold; | |
} |
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
var time = new Date(); | |
date = time.getDate(); | |
month = time.getMonth(); | |
year = time.getFullYear(); | |
watch =time.getTime(); | |
$(function(){ | |
$('.date').text(date + " - " + month + " - " + year); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment