added String to to_java

Allows a date provided as a string and properly converted.