Added timeStampromDate method.