Vue Js Get Current Date and Time Example

July 21, 2019 | Category : Vue.js

In this artical, i will let you know how to get current date and time in vue js app. we can easily get current date and time using javascript Date(). you can also display current date with any format like dd-mm-yyyy etc.

You can see bellow example that will help you to getting current date and current time in vue.js.

Bellow i gave you very simple example so you can understand how to display current date and time in vue app.


<!DOCTYPE html>



<title>How to get current date time in vue js? -</title>

<script src=""></script>



<div id="app">

{{ message }}



<script type="text/javascript">

new Vue({

el: '#app',

data: {

message:"Welcome, Please Wait...."



callFunction: function () {

var currentDate = new Date();


var currentDateWithFormat = new Date().toJSON().slice(0,10).replace(/-/g,'/');




mounted () {






It will help you...