date fetching problem
Posted: Tue Oct 05, 2010 1:31 am
Hii....i am plannning to implement a portal using php.I am using ms sql server 2008 as the database and hosting it with IIS 6.I am facing problem for the following
-I am trying to grab a date value from the database and echoing it.I tried using " $empdoj =date("d/m/Y", strtotime($row['emp_doj']));"($emp_doj is the sqlserver attribute) but it is showing 01/01/1970 always.
Thanks for the help in advance..
-I am trying to grab a date value from the database and echoing it.I tried using " $empdoj =date("d/m/Y", strtotime($row['emp_doj']));"($emp_doj is the sqlserver attribute) but it is showing 01/01/1970 always.
Thanks for the help in advance..