creating date from string, first version