ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Display Current DateTime in SQL format (yyyy-MM-dd HH:mm:ss) in AngularJS<p>Hi&nbsp;skp,</p> <p>Check this example. Now please take its reference and correct your code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.8/angular.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; var app = angular.module(&#39;MyApp&#39;, []); app.controller(&#39;MyController&#39;, function ($scope) { $scope.DateTime = new Date().toISOString().slice(0, 19).replace(&#39;T&#39;, &#39; &#39;); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div ng-app=&#34;MyApp&#34; ng-controller=&#34;MyController&#34;&gt; {{DateTime}} &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/191860/Display-Current-DateTime-in-SQL-format-yyyy-MM-dd-HHmmss-in-AngularJS/https://www.aspforums.net:443/Threads/191860/Display-Current-DateTime-in-SQL-format-yyyy-MM-dd-HHmmss-in-AngularJS/Fri, 12 Jul 2019 06:56:31 GMT