$datetime = new DateTime();
if ($user->cb_expdate_3 == "0000-00-00" || NULL) return NULL;
$prettydatetime = new DateTime($user->cb_expdate_3);
return $prettydatetime->format('j F Y');
Please Log in to join the conversation.
Is there a reason it needs to be stored in the database? You should be able to push data to Moodle using CB Auto Action using substitutions to get field values.Is there a way I can accomplish the same goal but have a stored value in the DB that I can then map over to Moodle?
Please Log in to join the conversation.