fix datestring