Direction-of-arrival (DOA) estimation is one of the most critical technologies of radar, remote sensing, and wireless communications. The traditional DOA estimation is closely related to phased array antennas, which require complicated and expensive hardware and high-power consumption. Metasurface can manipulate electromagnetic waves without using massive transceivers, which makes it possible to realize antenna arrays in a cost-effective way. Here, we propose a strategy of DOA estimations by using a time-domain-coding digital metasurface and a single receiver. Specifically, the incident wave on the metasurface is modulated by the time-domain orthogonal codes impressed on the meta-atoms, and their amplitude and phase distributions are precisely retrieved from the signals detected by the receiver antenna. The effectiveness and accuracy of the proposed strategy are verified by experiments on a two-dimensional metasurface with individually addressable meta-atoms. The strategy features low cost and high flexibility and will facilitate various wireless applications.