In my project, I am selecting months from picker view that month name is placed in Text field. But I have to send Month Number to the server.
This is my month array
var monthsArray = ["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"]
Here I am getting a problem. For an example If I select April, I have to send 4 to the server, How to do this task please someone help/ advise me.