Added datetime formatstring argument