Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert month name to month number in js

month1 = month1.toLowerCase();
var months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
month1 = months.indexOf(month1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #month #month #number #js
ADD COMMENT
Topic
Name
9+4 =