VUE date and time format is removed. 0

2018-07-26 23 59.0 Fraser 59.0

becomes 2018-07-26 23:59:59

Sorry, I read it wrong on my side. The answers of all the friends downstairs are correct. Thank you

Mar.22,2021

'2018-07-26 23:59:59.0'.slice (0 hr class= 19)


'2018-07-26 23:59:59.0'.replace(/.[0-9]*$/,'')

clipboard.png


{{item.EndTime.replace(/.[0-9]*$/,'')}}

  1. that's a stupid question. There are many ways to deal with strings, regularities, etc., and the subject should think of his own way first.
  2. The
  3. subject should start from the source, find out what caused you to generate such a string, and then figure out a way at that stage, rather than finally removing the tail .0 .
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e59bc0-45541.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e59bc0-45541.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?