update snippet preparedatewhere