Skip to content

Instantly share code, notes, and snippets.



Last active Mar 14, 2021
What would you like to do?
Run: java to get the first Monday of the month
import java.time.DayOfWeek;
import java.time.LocalDate;
import static java.time.temporal.TemporalAdjusters.*;

public class NextAirhacksTV {

    public static void main(String[] args) {
        var now =;
        var nextMondayOfTheMonth = now.
        System.out.printf("See you at next %s 8pm CET (UTC +1)",nextMondayOfTheMonth);

run with: java to get the next date. (the date may change, so very verify on, or


This comment has been minimized.

Copy link

@arend-von-reinersdorff arend-von-reinersdorff commented Mar 14, 2021

Suggestion to also find Monday the 1st:

var nextMondayOfTheMonth = now.with(firstInMonth(DayOfWeek.MONDAY));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment