Support

Account

Home Forums General Issues Empty date field return 'null' and '' (empty string) Reply To: Empty date field return 'null' and '' (empty string)

  • Solved. I was creating datetime from empty field:

    new \DateTime(get_field('date', $item->ID, false))