The equilibrium properties of hard rod monolayers are investigated in a lattice model (where position and orientation of a rod are restricted to discrete values) as well as in an off--lattice model featuring spherocylinders with continuous positional and orientational degrees of freedom. Both models are treated using density functional theory and Monte Carlo simulations. Upon increasing the density of rods in the monolayer, there is a continuous ordering of the rods along the monolayer normal (standing up transition). The continuous transition also persists in the case of an external potential which favors flat--lying rods in the monolayer. This behavior is found in both the lattice and the continuum model. For the lattice model, we find very good agreement between the results from the specific DFT used (lattice fundamental measure theory) and simulations. The properties of lattice fundamental measure theory are further illustrated by the phase diagrams of bulk hard rods in two and three dimensions.