If you are using MySQL, you could use some of the date functions provided <a href="http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html">http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html</a><div>
<br></div><div>However, since it is better to program to an interface rather than an implementation, consider instead selecting the timestamps directly and using Drupal&#39;s date_format function <a href="http://api.drupal.org/api/drupal/includes--common.inc/function/format_date/6">http://api.drupal.org/api/drupal/includes--common.inc/function/format_date/6</a> which will provide user-based timezone support.</div>
<div><br></div><div>You may also be interested in the date and date_api modules <a href="http://drupal.org/project/date">http://drupal.org/project/date</a><br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 10:53 PM, Mayur pimple <span dir="ltr">&lt;<a href="mailto:mayurpimple12@gmail.com">mayurpimple12@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><div class="gmail_quote"><br><br>Hi <br><br>i want date and time of node from database.<br>in database node_revision table<br clear="all">
<br>1) nid<br>2) timestamp<br>3) uid<br>and other filed<br><br>Timestamps value is in database =<span dir="ltr"><span dir="ltr" title="Call this phone number in India with Skype: +911292839748"><span><span>1292839748</span></span><span> </span></span></span><br>


but i want in this format -&gt;  <span>Mon, 12/27/2010</span><br><br>my question is how write select query so that i can get this date and time<br>-- <br><font face="tahoma, sans-serif"><font color="#999999">Thanks &amp; Warm Regards,</font></font><div>


<font face="tahoma, sans-serif"><br></font><span style="font-family:tahoma,sans-serif">  <font color="#999999" size="1"><u>Mayur Pimple</u></font><font color="#c0c0c0" size="1"><u> | Raintek Solution<br></u></font></span> <span style="color:rgb(192, 192, 192)"> </span><font style="color:rgb(192, 192, 192)" size="2">Skype: mayur.pimple</font><br>


<div><font face="tahoma, sans-serif">  <span style="font-family:&#39;Trebuchet MS&#39;;font-size:11px;border-collapse:collapse;color:rgb(128, 128, 128)">Mobile: </span><font color="#999999">9270367824</font><br> <font size="1"> <a href="http://www.mayurpimple.blogspot.com" target="_blank"><font color="#999999">www.mayurpimple.blogspot.com</font></a></font><br>


<span style="color:rgb(255, 102, 0)"><br></span></font></div><div><font face="tahoma, sans-serif"><span style="color:rgb(255, 102, 0)">                         <img></span>      <br>

<font color="#ff0000">We are the Representatives of the Modern World of Evolution</font><font color="#ff6600">. </font></font></div></div><div><font face="tahoma, sans-serif"><font color="#ff6600"><br></font></font></div>


<br>
</div><br><br clear="all"><br>-- <br><font face="tahoma, sans-serif"><font color="#999999">Thanks &amp; Warm Regards,</font></font><div><font face="tahoma, sans-serif"><br></font><span style="font-family:tahoma,sans-serif">  <font color="#999999" size="1"><u>Mayur Pimple</u></font><font color="#c0c0c0" size="1"><u> | Raintek Solution<br>

</u></font></span> <span style="color:rgb(192, 192, 192)"> </span><font style="color:rgb(192, 192, 192)" size="2">Skype: mayur.pimple</font><br><div><font face="tahoma, sans-serif">  <span style="font-family:&#39;Trebuchet MS&#39;;font-size:11px;border-collapse:collapse;color:rgb(128, 128, 128)">Mobile: </span><font color="#999999">9270367824</font><br>

 <font size="1"> <a href="http://www.mayurpimple.blogspot.com" target="_blank"><font color="#999999">www.mayurpimple.blogspot.com</font></a></font><br><span style="color:rgb(255, 102, 0)"><br></span></font></div><div><font face="tahoma, sans-serif"><span style="color:rgb(255, 102, 0)">                         <img></span>      <br>

<font color="#ff0000">We are the Representatives of the Modern World of Evolution</font><font color="#ff6600">. </font></font></div></div><div><font face="tahoma, sans-serif"><font color="#ff6600"><br></font></font></div>

<br>
</blockquote></div><br></div>