Fix strdex date calculations