Spending 2-3 days in Nanjing should be enough time to see the main sights, however if you want to see everything a longer stay will be needed.