Skip to content

Instantly share code, notes, and snippets.

@momin-riyadh
Forked from anonymous/index.html
Created October 25, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save momin-riyadh/9aac294d9f7dbd449c83 to your computer and use it in GitHub Desktop.
Save momin-riyadh/9aac294d9f7dbd449c83 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/duyawu
<!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();
var today =time.toLocaleDateString();
$(function(){
$('.date').text(today);
});
console.log (today);
</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();
var today =time.toLocaleDateString();
$(function(){
$('.date').text(today);
});
console.log (today);
</script></body>
</html>
.date{
background: #8c8c8c;
padding: 5px;
margin-top: 10px;
display: block;
color:white;
font-weight:bold;
}
var time = new Date();
var today =time.toLocaleDateString();
$(function(){
$('.date').text(today);
});
console.log (today);
@momin-riyadh
Copy link
Author

JS toLocalDateString();

Copy link

ghost commented Oct 25, 2015

response is to send an email notification to copyright@github.com. You may include an attachment if you like, but please also include a plain-text version of your letter in the body of your message. If you must send your notice by physical mail, you can do that too, but it will take substantially longer for us to receive and respond to it. Notices we receive via plain-text email have a much faster turnaround than PDF attachments or physical mail. If

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment