Question: How to put the logo before the date and after my name in the title? I write it as 

```
 \begin{document}

 \title{}

 \author{}

 \titlepic{ \includegraphics[width=0.5\textwidth]{logo}

 \date{} 

```

but it appears after the date!!

Answer: 
You can use the `\author` field; something along these lines:

```
\documentclass{article}
\usepackage[demo]{graphicx}

\title{The Title}
\author{%
  The Author \\
 \includegraphics[width=0.5\textwidth]{logo}%
}
\date{\today}

\begin{document}

\maketitle

\end{document}

```

![enter image description here](https://i.stack.imgur.com/Yb6lI.png)

Using the optional argument for `\\` (as in `\\[1cm]`, `\\[-3pt]`) you can 
control the vertical space between the author name and the logo.

The `demo` option for `graphicx` simply replaces actual figures with black rectangles; do not use that option in your actual document.

As **Matthew Leingang** mentions in a comment, some packages will do things with the contents of the `\author` declaration, like put it into the PDF metadata. Declaring the author of the document to be `The Author \\ \includegraphics[width=0.5\textwidth]{logo}` spoils this extra functionality and will require extra adjustments.
You can redefine the `\maketitle` as it is done by the titlepic package.

```
\documentclass[titlepage]{article}
\usepackage[demo]{graphicx}
\usepackage{titlepic}
%
\makeatletter
%% This is a redefinition of the contents of titlepic.sty file
\if@titlepage
\renewcommand\maketitle{
    \begin{titlepage}%
        \let\footnotesize\small
        \let\footnoterule\relax
        \let \footnote \thanks
        \@tptopspace%
        \begin{center}%
            {\LARGE \@title \par}%
            \vskip 3em% %% Change this space if you wish
            {\large
                \lineskip .75em%
                \begin{tabular}[t]{c}%
                \@author
                \end{tabular}\par%
            }%
%         \@tpsepspace% %% uncomment if you need space.
        {\centering\@titlepic\par}
            \vskip 1.5em%   %% Change this space if you wish
            {\large \@date \par}%       % Set date in \large size.
        \end{center}\par
        \vfil
        \@thanks
    \end{titlepage}%
    \setcounter{footnote}{0}%
    \global\let\thanks\relax
    \global\let\maketitle\relax
    \global\let\@thanks\@empty
    \global\let\@author\@empty
    \global\let\@date\@empty
    \global\let\@title\@empty
    \global\let\@titlepic\@empty
    \global\let\title\relax
    \global\let\author\relax
    \global\let\date\relax
    \global\let\and\relax
    \global\let\titlepic\relax
}
\fi
\makeatother
%
\begin{document}
%
\title{My title}
%
\author{My name}
%
\titlepic{\includegraphics[width=0.5\textwidth]{logo}}
%
\date{\today} 
%
\maketitle
%
\end{document}

```

![enter image description here](https://i.stack.imgur.com/vCyIU.png)