File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
samples/Reading_workbook_data Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3838
3939 break ;
4040 case 'd ' : // date
41- $ propertyValue = is_numeric ($ propertyValue ) ? date ('l, d <\s\u\p>S</\s\u\p> F Y g:i A ' , (int ) $ propertyValue ) : '*****INVALID***** ' ;
41+ $ propertyValue = is_numeric ($ propertyValue ) ? date ('l, j <\s\u\p>S</\s\u\p> F Y g:i A ' , (int ) $ propertyValue ) : '*****INVALID***** ' ;
4242 $ propertyType = 'date ' ;
4343
4444 break ;
Original file line number Diff line number Diff line change 1919
2020// Read the Date when the workbook was created (as a PHP timestamp value)
2121$ creationDatestamp = $ spreadsheet ->getProperties ()->getCreated ();
22- $ creationDate = Date::formattedDateTimeFromTimestamp ("$ creationDatestamp " , 'l, d <\s\up >S</\s\up > F Y ' );
22+ $ creationDate = Date::formattedDateTimeFromTimestamp ("$ creationDatestamp " , 'l, j <\s\u\p >S</\s\u\p > F Y ' );
2323$ creationTime = Date::formattedDateTimeFromTimestamp ("$ creationDatestamp " , 'g:i A ' );
2424$ helper ->log ('<b>Created On: </b> ' . $ creationDate . ' at ' . $ creationTime );
2525
3030// Read the Date when the workbook was last modified (as a PHP timestamp value)
3131$ modifiedDatestamp = $ spreadsheet ->getProperties ()->getModified ();
3232// Format the date and time using the standard PHP date() function
33- $ modifiedDate = Date::formattedDateTimeFromTimestamp ("$ modifiedDatestamp " , 'l, d <\s\up >S</\s\up > F Y ' );
33+ $ modifiedDate = Date::formattedDateTimeFromTimestamp ("$ modifiedDatestamp " , 'l, j <\s\u\p >S</\s\u\p > F Y ' );
3434$ modifiedTime = Date::formattedDateTimeFromTimestamp ("$ modifiedDatestamp " , 'g:i A ' );
3535$ helper ->log ('<b>Last Modified On: </b> ' . $ modifiedDate . ' at ' . $ modifiedTime );
3636
You can’t perform that action at this time.
0 commit comments