date constructor fix (supports now all three paramter variants)