How do expiry dates work for discount codes?

If you set an expiry date for a discount, then the discount will expire at 11:59:59 PM on that day.