The best time to visit Shimla and Manali is from April to June for pleasant weather and outdoor activities, or December to February for snow and winter sports.