Web page extracting date

I have choosing date from web page, have assign the variable and able to extract the date if date will keep changing array not able to extract.

example: May month - i applied the variable “MMM dd” ----------- i.e May 26
Jun month - Its changing to “MMMM d” or “MMMM dd” ------- June 1 or June 10
July Month - keep changing ?

can you advise pass the variable so that i can assign ?



I tried if condition getting error as i try to convert string to integer, pls help.

if less than 9 condition met assign datevalue1
if more than 9 it means condition does not met assign to datevalue