KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to display $row->depositdate in dd-mm-yyyy format. If the date column in database is null the date displayed is : 01-01-1970 echo "<td align=center>".date('d-m-Y', strtotime($row->depositdate))."</td>"; If the date is null in database it should display nothing , otherwise the date in dd-mm-yyyy format should be displayed. Thanks in advance Sandeep
Tags (comma-separated)
Save Edits
Cancel