Is it better to inform of all errors that don’t allow to continue at once or do it one per one?

For example, right now, to be able to continue when pressing a button the following things should happen:

  1. An input text box should not be empty.

  2. Internet connection should be active.

  3. Date should be the current one.

Would it be better if I display a message telling all errors that have been found or tell one of them every time the user presses the button?

I'm better explaining it:

My idea is to either show 1 or more snackbars that either tell about one of these problems one per one, or these snackbars that show all together.

The code structure for the first case would be something like.

if (noemptytext)
{
    if (internetActive)
    {
        if (correctDate)
        {

        }
        else
        {
            showSnackBar(wrongdatemessage);
        }
    }
    else
    {
         showSnackbar(nointernetmessage);
    }
}
else
{
   showSnackbar(emptytextmessage);
}

And for the second case:

String messageAllErrorsFound="";

if (emptytext)
{
    messageAllErrorsFound+=emptytextmessage
}

if (nointernet)
{
    messageAllErrorsFound+=nointernetmessage
}

if (wrongDate)
{
    messageAllErrorsFound+=wrongdatemessage
}

if (!messageAllErrorsFound.equals(""))
{
    showSnackbar(messageAllErrorsFound);
}