Garima Bansal

Garima Bansal

  • 861
  • 681
  • 39.8k

Display only date and no time

Jun 11 2024 10:14 AM

Since the database field is a datetime datatype and I am converting the current date to string format, this is not working.. how can I do this? I am doing the string format because I want the date in mm/dd/yyyy format and not in mm/dd/yyyy hh:mm:ss time format..

i want show date like dd/mm/yyyy
but i dont why timestamp is showing like
dd/mm/yyyy 3:00 PM

 <td>Updated dt.</td>

<td>
    (item.linedeptdt != null)
 </td>


Answers (4)