Some bugfixes

I've fixed two bugs in the create method, where an undefined variable was used and the $dateFormat parameter wasn't used at all.