I am using mdframed as footer and want page number as footer but in mdframed. If i use mdframed it overwrites on page number. How can i write page number in footer within mdframed?

EDIT: Code of the comment
\pagestyle{fancy}
\fancyhf{} % sets both header and footer to nothing \renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
\fancyfoot[C]{\begin{mdframed}[roundcorner=4pt,leftmargin=1, rightmargin=1, linecolor=blue,outerlinewidth=.5, innerleftmargin=5,innertopmargin=5,innerbottommargin=5,everyline = true, splittopskip=.6cm, splitbottomskip=.3cm]
\parbox[t]{0.333\textwidth}{\raggedright{ID} \parbox[t]{0.333\textwidth}{\centering{footertext} \parbox[t]{0.333\textwidth}{\raggedleft{Date} \end{mdframed}}
\documentclass{article}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{fancyhdr} \usepackage{lipsum}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\fancyfoot[C]{%
\begin{mdframed}[linecolor=blue!60,roundcorner=3pt]
\parbox[t]{0.333\textwidth}{\raggedright XXXXXXXX}%
\parbox[t]{0.333\textwidth}{\centering Page}%
\parbox[t]{0.333\textwidth}{\raggedleft 31 July 2012}
\end{mdframed}%
}
\begin{document}
\lipsum[1-2]
\end{document}
\documentclassand ending\end{document}– David Carlisle Aug 03 '12 at 13:20\pagestyle{fancy} \fancyhead{} \fancyfoot{} \fancyfoot[C]{% \begin{mdframed}[linecolor=blue!60,roundcorner=3pt] \parbox[t]{0.333\textwidth}{\raggedright XXXXXXXX}% \parbox[t]{0.333\textwidth}{\centering Page}% \parbox[t]{0.333\textwidth}{\raggedleft 31 July 2012} \end{mdframed}% }
\begin{document} \lipsum[1-2] \end{document} Above code is for generating footer text but i need page number. How can i implement it?
– manish Aug 06 '12 at 03:10\dimexpr\textwidth/3\relaxinstead of0.333\textwidth. – kiss my armpit Aug 06 '12 at 08:45