Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue js datetime convert

import moment from 'moment'

Vue.filter('formatDate', function(value) {
  if (value) {
    return moment(String(value)).format('MM/DD/YYYY hh:mm')
  }
}
Source by forum.vuejs.org #
 
PREVIOUS NEXT
Tagged: #vue #js #datetime #convert
ADD COMMENT
Topic
Name
5+1 =