December would be the best time to visit Hanoi as it's winter time. If you plan to visit Sapa, it will be snowing on some days.