TimeStamp microservice - Can you help me? - SOLVED

TimeStamp microservice - Can you help me? - SOLVED
0

#1

I’m having a lot of trouble getting my timestamp microservice working!

I feel like i “understand” what I need to do and it’s just not working…like shoving a square peg into a round hole!

here is my github repository

I’m trying to implement moment.js to create a valid date object. I am able to pull in the parameter just fine, but not convert it to a date…and from there I can’t really do much. Any input to help me sort it out?


#2
var m = moment("input");

Drop the quotes around input and see if that helps things.

var m = moment(input);

#3

Thanks, that was one of the issues for sure! Appreciate your help.