How to Get the Current Date using Kendo UI

  1. <html>  
  2.     <head>  
  3.         <title>Kendo Template With Current Date</title>  
  4.         <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.common.min.css">  
  5.             <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.rtl.min.css">  
  6.                 <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.default.min.css">  
  7.                     <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.dataviz.min.css">  
  8.                         <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.dataviz.default.min.css">  
  9.                             <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.mobile.all.min.css">  
  10.                                 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">  
  11.                                     <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>  
  12.                                     <script src="http://cdn.kendostatic.com/2015.1.408/js/kendo.all.min.js"></script>  
  13.                                 </script>  
  14.                             </head>  
  15.                             <body>  
  16.                                 <div class="container" id="example1"></div>  
  17.                                 <script id="product-template1" type="text/x-kendo-template">  
  18.                                     <h3>Kendo UI with current date </h3>  
  19.                                 </br>  
  20.                                 <article>  
  21.                                     <time> #= new Date().toLocaleDateString() #</time>  
  22.                                 </article>  
  23.                             </script>  
  24.                             <script>  
  25. var template1 = kendo.template($("#product-template1").html());  
  26. $('#example1').html(template1);  
  27. </script>  
  28.                         </body>