Skip to content

Commit

Permalink
JavaScript > 3_Methods > Date&Times
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMadWill committed Oct 23, 2021
1 parent 70d8456 commit cfb3bc7
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions 2_Operators/Html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!doctype html>
<html lang="en">
<head>
<title>JavaScript</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Bootstrap CSS v5.0.2 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

</head>
<body>

<div class="card" style="width:20rem;">
<img src="https://images.unsplash.com/photo-1561154464-82e9adf32764?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-muted ">Card subtitle</h6>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
b5
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<script src="../JavaScripts/4_2_1_operators.js"></script>

</body>
</html>
File renamed without changes.
2 changes: 1 addition & 1 deletion Operators/Html/index.html → 3_Methods/Html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h6 class="card-subtitle mb-2 text-muted ">Card subtitle</h6>
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<script src="../JavaScripts/4_1_1_operators.js"></script>
<script src="../JavaScripts/5_3_1_DateTimeMethods.js"></script>
<!-- <script src="../JavaScript/2_1_2_datatype.js"></script> -->
<!-- <script src="../JavaScript/3_1_3_type_convert.js"></script> -->
</body>
Expand Down
34 changes: 34 additions & 0 deletions 3_Methods/JavaScripts/5_3_1_DateTimeMethods.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Date Object
let date = new Date('12/07/23');

// Set Methods bu metdolar vastesi ile time istenilen vaxta cekmek mukundur

date.setHours(12)
date.setMonth(7)


// Get Methods
console.log(date);

// gun
console.log("getDate() - gun - >> ",date.getDate());

// hefte gunleri sifirdan baslayaraq
console.log("getDay() - hefte gunleri sifirdan baslayaraq - >> ",date.getDay());

// ill
console.log("getFullYear() - ill - >> ",date.getFullYear());

// saat
console.log("getHours() - saat - >> ",date.getHours());

// ay
console.log("getMonth() - ay - >> ",date.getMonth());

// ay
console.log("getMonth() - ay - >> ",date.getMinutes());





3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
- [Type Convert](https://github.com/DrMadWill/JavaScript/blob/main/Variables/JavaScript/3_1_3_type_convert.js)
- Operators
- [Operators](https://github.com/DrMadWill/JavaScript/blob/main/Operators/JavaScripts/4_1_1_operators.js)
- Methods
- Date&Time Method




Expand Down

0 comments on commit cfb3bc7

Please sign in to comment.