Yeast infection 22weeks pregnant

Iesha • 25• first pregnancy 🤰🏾 • 12-28-2017 👑👑 greatness will be born . Mommy and daddy got yo back

Do I really have to wait til bedtime to take this medication? Or can I take it at any time of the day if I plan on being in bed already ??