Guest User

Untitled

a guest
Jan 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. while( $fetch = sqlsrv_fetch_array( $stmt , SQLSRV_FETCH_ASSOC) )
  2. {
  3. //echo '<pre>';
  4. print_r($fetch); exit;
  5. $date=$fetch['Dt_Installment_Date'];
  6. echo '<pre>'; print_r($date); exit;
  7. }
  8.  
  9. The current output that I am getting is as follows:
  10.  
  11. <pre>DateTime Object
  12. (
  13. [date] => 2019-01-18 00:00:00.000000
  14. [timezone_type] => 3
  15. [timezone] => Europe/Berlin
  16. )
  17.  
  18. $result = $date->format('Y-m-d');
  19.  
  20. echo $result;
Add Comment
Please, Sign In to add comment