Python has a very flexible date parser,
--------------------------------
--------------------------------
B4X:
from dateutil.parser import parse
import time
def check(s):
print s + "..."
try:
dt = parse(s)
print " " +time.strftime("%Y %m %d",dt.timetuple())
except Exception as x:
print " can't parse that: " + repr(x)
check("June 1954")
check("4/5/2012")
check("April 3rd, 1999")
check("1963, may 17th")
check("April 3rd, 1999")
check("April third, 1999")
--------------------------------
June 1954...
1954 06 07
4/5/2012...
2012 04 05
April 3rd, 1999...
1999 04 03
1963, may 17th...
1963 05 17
April 3rd, 1999...
1999 04 03
April third, 1999...
can't parse that: ValueError(u'Unknown string format',)