Name of a weed
What is the plant in the attached photo? It is leggy and growing in my flower bed. It makes little white flowers on top of a seed pod that looks like a Chinese lantern. The flowers open at dusk and most close during the day. I remember it growing in pastures when I was a child but don't know what kind of plant it is. Does anyone know it's name?