Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
55
rated 0 times [  56] [ 1]  / answers: 1 / hits: 34606  / 5 Years ago, wed, june 12, 2019, 12:00:00

I want to print Last updated: 6/12/2019 1:30 PM in Vue.js.
I have the current year but I want the full date and time. Here's what I have so far



<div id=app>
Last updated: {{ new Date().getFullYear() }}
</div>

More From » html

 Answers
12

You can use: new Date().toLocaleString(), it gives you 6/13/2019, 9:40:40 AM


[#52005] Thursday, June 6, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ashelye

Total Points: 479
Total Questions: 97
Total Answers: 85

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;