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 38
38
39
39
break ;
40
40
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***** ' ;
42
42
$ propertyType = 'date ' ;
43
43
44
44
break ;
Original file line number Diff line number Diff line change 19
19
20
20
// Read the Date when the workbook was created (as a PHP timestamp value)
21
21
$ 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 ' );
23
23
$ creationTime = Date::formattedDateTimeFromTimestamp ("$ creationDatestamp " , 'g:i A ' );
24
24
$ helper ->log ('<b>Created On: </b> ' . $ creationDate . ' at ' . $ creationTime );
25
25
30
30
// Read the Date when the workbook was last modified (as a PHP timestamp value)
31
31
$ modifiedDatestamp = $ spreadsheet ->getProperties ()->getModified ();
32
32
// 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 ' );
34
34
$ modifiedTime = Date::formattedDateTimeFromTimestamp ("$ modifiedDatestamp " , 'g:i A ' );
35
35
$ helper ->log ('<b>Last Modified On: </b> ' . $ modifiedDate . ' at ' . $ modifiedTime );
36
36
You can’t perform that action at this time.
0 commit comments