Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment js remove seconds

// This gives you the current datetime, without seconds or milliseconds.

moment().seconds(0).milliseconds(0).toISOString();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #moment #js #remove #seconds
ADD COMMENT
Topic
Name
3+4 =