$post[joindate]=vbdate($registereddateformat,$post[joindate]);
if (!$post[fieldx]) { $post[fieldx] = "0"; }