I wanted to know how can I get todays date in as July 17,2014
format. I am new to javascript..
please help
but
I have tried using var today = new Date();
..but it gives me current date and not in the format I want.
I wanted to know how can I get todays date in as July 17,2014
format. I am new to javascript..
please help
but
I have tried using var today = new Date();
..but it gives me current date and not in the format I want.
Try to make use of following method of Date in javascript:
getFullYear(); // 2011
getMonth(); // 0-11, 0-based month in year,
getDate(); // 0-31, 1-based day of month,