Timeline for Insert date programatically in custom module
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 15, 2018 at 15:04 | comment | added | Akhil Mohandas | DateTime::createFromFormat('d/m/Y', '19/12/1938')->format('Y-m-d'); The above works in a normal php script and returns the desired format but when I assign $node_data['field_date_of_birth']['value'] = DateTime::createFromFormat('d/m/Y', '19/12/1938')->format('Y-m-d'); it doesnt work. I dont understand why | |
Nov 15, 2018 at 14:40 | review | Low quality posts | |||
Nov 15, 2018 at 15:34 | |||||
Nov 15, 2018 at 14:24 | history | answered | SilviaGDLR | CC BY-SA 4.0 |