add conditional for null values before formatting date
update user prompt
add conditional check for memcache
set $memcache to null if not available
adjust date formatting