That can depend on the course. There are online diploma courses that can take 1 year to complete. There are others that can take 2 years. And the same case goes for postgraduate diploma courses as well.