0-6 month dresses..

Why are some baby girl fancy dresses 0-6 months? How do I know if my 1 month old or if she's 5 months that it will fit?