Answer the question
In order to leave comments, you need to log in
How to set date format in Node.JS?
Can anyone help set the date format in Node.JS? I tried a lot of time but I got error all the time. Could you please provide me the complete date format with code for Node.JS?
Answer the question
In order to leave comments, you need to log in
Because your method match
does not find anything with an empty string.
Replace
var count = $('#js-myText').val().match(/\w{1,}/g);
var count = $('#js-myText').val().match(/\w{1,}/g) || 0;
I'm a regular format like yyyy:mm:dd, Still not working.. :(
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question