How can I access the date from an object (new Time('+1 day') ? ) |
Hello colleagues !
Unable to access "date" from new Time ('+ 1 day'). I try with this code: Code: $myTime = new Time('+1 day'); CodeIgniter\I18n\Time Object ( [timezone:protected] => DateTimeZone Object ( [timezone_type] => 3 [timezone] => Europe/Sofia ) [locale:protected] => bg [toStringFormat:protected] => yyyy-MM-dd HH:mm ![]() [date] => 2021-06-23 15:39:19.000000 [timezone_type] => 3 [timezone] => Europe/Sofia )
@Steven Dev,
Maybe this will work better for you... https://stackoverflow.com/questions/1394...-to-a-date
Thank you @php_rocs realy i can use this.
|
Welcome Guest, Not a member yet? Register Sign In |