moment().startOf('year').seconds(10).format('DDD [days,] HH [hrs,] mm [mins,] ss [secs]') It'ss giving the correct value for seconds but along with that it also showing days. code example
Example: format a date moment
moment(testDate).format('MM/DD/YYYY');