title: How to stop string to date in excel using php
body: <p>Hi i am try to stop string to date in excel sheet csv file using php.
  my data is like 10-14 but its convert oct-14. how to solve it using php</p>
  <p>my code:-</p>
  <pre class="lang-php prettyprint-override"><code>$delimiter=&quot;,&quot;;
  $fileName=&quot;lead-contact-property&quot;.date('d-m-y').&quot;.csv&quot;;
  
  $f=fopen('csv_file/lead-contact-property.csv','w');
  
  
  $fields = array('Lead id', 'Contact id', 'Property id', 'Type', 'Source', 'Assignee Name', 'Sender Email', 'Spam Score','Is Spam','Subject','Plain Body','Contact Name','Name Salutation','Name Addressee','Contact Email','Primary Info Phone','Property Address Unit Number','Address Street Number','Address Street Name',
  'Address Suburb or Town','Address Locality','Address state or Region','Address PostCode','Address Country','Address Estate Name','Address Estate Stage','Property Type','Audit Owned By','Audit Created At','Audit Created By','Audit Last Modified At','Audit Last Modified By');
  
  fputcsv($f, $fields, $delimiter);
  
  while($row=sqlsrv_fetch_array($result,SQLSRV_FETCH_ASSOC))
  {
      
      $audtCreatedAt= date(&quot;d/m/Y H:i:s &quot;,$row['audit__created_at']);
      $auditModifyAt=date(&quot;d/m/Y H:i:s &quot;,$row['audit_last_modified_at']);
  
     
  
      if($row['address_street_number'] !=&quot;&quot;){
          $changeStreetNumber=(string)$row['address_street_number'];
          
      }
      
     
      
      $changeUnitNumber=strval($row['property_adr_unit_number']);
      
  
      $lineData=array($row['lead_id'],$row['contact_id'],$row['property_id'],$row['type'],$row['source'],$row['assignee_name'],$row['sender_email'],
      $row['spam_score'],$row['is_spam'],$row['subject'],$row['plain_body'],$row['contact_name'],$row['name_salutation'],$row['name_addressee'],$row['contact_email'],
      $row['primary_info_phone'],$changeUnitNumber,$changeStreetNumber,$row['address_street_name'],$row['address_suburb_or_town'],$row['address_locality'],
      $row['address_state_or_region'],$row['address_postcode'],$row['address_country'],$row['address_estate_name'],$row['address_estate_stage'],$row['property_type'],
      $row['audit_owned_by'],$audtCreatedAt,$row['audit_created_by'],$auditModifyAt,$row['audit_last_modified_by']);
     
      fputcsv($f, $lineData, $delimiter);
      
  }
  
  fseek($f, 0); 
  
  fpassthru($f); 
  </code></pre>