[Tex/LaTex] How to get a lower or higher tilde/~

symbols

I want to presents hours and say from hour x to hour y by using sample '~'.
Please guide me how I can present the symbol "~"?


In contrast to How does one insert a backslash or a tilde (~) into LaTeX?, I'm particularly interested in controlling the vertical placement of the ~.

Best Answer

In comments you indicated that it is the height of the ~ that is your concern, perhaps one of these does what you want:

enter image description here

\documentclass{article}

\begin{document}

a\textasciitilde b\raisebox{-1ex}{\textasciitilde}c\raisebox{-1.2ex}{\textasciitilde}d\raisebox{-2ex}{\textasciitilde}e

\end{document}