walkwithsabari
12-29-2008, 09:31 AM
:confused: Hi ! This is Sabari ..
I have an array of strings. The strings are in MM/DD/YYYY format.
From this how can I get the Month (0- jan, 1 - feb ... ) like that?
I have been tried with new Date(array[index]).month as Number.
It gives some other output.
But same situation for Day of the Month
new Date(array[index]).date as Number gives a correct Day.
Can anybody help me to resolve this?
Answers are welcome.
I have an array of strings. The strings are in MM/DD/YYYY format.
From this how can I get the Month (0- jan, 1 - feb ... ) like that?
I have been tried with new Date(array[index]).month as Number.
It gives some other output.
But same situation for Day of the Month
new Date(array[index]).date as Number gives a correct Day.
Can anybody help me to resolve this?
Answers are welcome.