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 .
Menu