ASAP Science has the answer and the best food ever is the fresh one, that you take today from the earth and then eat it the same day. If you cannot do this, then take the vegetables our of the garden today and then put them in the freezer.
When you take them out a month or maybe a year later they will still be very good to eat and will contain most of the nutrients.
As a general advice, any food you will put in the freezer will be preserved in that state and can be eaten even after 1 year. I often put the bread in the freezer and then use the microwave oven to heat it up and then eat it. Yummy.