You can buy Musée du Louvre tickets on the official online ticketing service. These tickets are time-stamped and valid strictly on the selected date.
It is nevertheless possible to modify your tickets as needed following your order, by logging into your account and accessing your order up until the day of your visit. The date and time are modifiable, subject to availability.