Fresher is better. As long as LME unopened and isn't ancient, it's probably okay. As long as DME hasn't been exposed to moisture, it's okay. You might want to toss some yeast nutrient in with it when you decide to use it to make sure you get a healthy fermentation.