Donald Trump on Monday said Microsoft can buy the Chinese-owned video app TikTok, but said the purchase would have to be completed by 15 September.