Say time in 24 hour format
It's no problem to use either in practice, though people used 12 hour format more (because 6 is easier to say than 18 ). When being asked: 现在几点, I might answer either 6点半 or 18点30. 18点30 sounds a little bit formal or "verbose".