You can always define a public method to do this for you:
public string PrintDate(DateTime m_date)
{
return m_date.ToShortDateString() + m_date.ToShortTimeString();
}
But why not to use ToUniversalTime()
<%= DateTime.Parse(dr["dt"].ToString()).ToUniversalTime().Tostring() %>
--
Gaidar Magdanurov
VBStreets, Editor-in-Chief
mailto:ga****@vbstreets.ru /
http://www.vbstreets.org
"Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:eX**************@TK2MSFTNGP09.phx.gbl...
3/4/2005 5:50:08 PM
Normally i display the above time and Date above from Database by using
:-
<%= DateTime.Parse(dr["dt"].ToString()).ToShortDateString() %><br/>
<%= DateTime.Parse(dr["dt"].ToString()).ToShortTimeString() %>
Any ideas how to display them together without having to seperate them
as i have done above???
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!