PHPExcel Tricks

=> Date format conversion in PHP Excel:

- When import excel file you have other date format and save date like database format (eg. 17-11-17 into 2017-11-17) you have write below code: 





$BookingMade = "17-11-17";
$BookingmadeDate = date('Y-m-d', PHPExcel_Shared_Date::ExcelToPHP($BookingMade));

Output: 2017-11-17

Comments

Popular posts from this blog

Application ld json data in shopify

on_sent_ok not working in Contact Form 7 version 5.0.2

Make carousel slider in shopify