Skip to main content

How to Get the First Day of the Month in Power Apps

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

The first day of a month is the date with that month's year and month, and day 1: Date(Year(d), Month(d), 1). With Today() for d, it's the first of this month; on 8 November 2026 that's 01/11/2026.

The example is the Overtime Timesheet app, whose My Overtime screen shows one month at a time and keeps that month as its first day.

Prerequisites​

Step 1: The First Day of This Month​

Date builds a date from a year, a month and a day (Date function). I put the formula into a text control's Text for a moment, so Studio's preview strip shows the result:

Any text control → Text
Date(Year(Today()), Month(Today()), 1)

On 8 November 2026 it's 01/11/2026:

The formula bar with Date(Year(Today()), Month(Today()), 1), the preview strip reading 01/11/2026, 00:00:00 with Data type Date, and the text control showing 01/11/2026

Step 2: The First Day of Any Date's Month​

The same formula works for any date. For 24 October 2026:

Any text control → Text
Date(Year(Date(2026, 10, 24)), Month(Date(2026, 10, 24)), 1)

The formula bar with the first-of-month formula for Date(2026, 10, 24), the preview strip reading 01/10/2026, 00:00:00 with Data type Date, and the text control showing 01/10/2026

In an app, the date is usually a control or a column, such as Date(Year(dpWorkDate.SelectedDate), Month(dpWorkDate.SelectedDate), 1).

How the Example Uses It​

The My Overtime screen remembers the month it shows in a context variable, as that month's first day. When the screen opens for the first time, it starts on this month:

My Overtime Screen → OnVisible
If(
IsBlank(locMonthMO),
UpdateContext({locMonthMO: Date(Year(Today()), Month(Today()), 1)})
);
Select(btnRefreshMO)

Common Mistakes​

MistakeWhat happensDo this instead
DateAdd(Today(), -Day(Today()), TimeUnit.Days)The last day of the previous month, not the first of this oneDate(Year(d), Month(d), 1)
Keeping the month as a name, such as NovemberNo year, and nothing to compare or add toKeep the first day as a date; format it to show

Troubleshooting​

SymptomLikely causeFix
The result shows 00:00:00 in the preview stripThe strip shows the whole date-and-time valueFormat it where people see it: How to Format a Date in Power Apps with Text
The month is empty when you preview the screenPreview started on this screen, so its OnVisible didn't runPreview from the screen before it and go to this one

FAQ​

How do I show it as a month name?​

Text(d, "mmmm yyyy") shows November 2026: How to Show the Month Name and Year in Power Apps.

How does Excel do this?​

Excel builds a date the same way with DATE: How to Build a Date from a Year, Month and Day in Excel with DATE.

Conclusion​

Date(Year(d), Month(d), 1) is the first day of d's month. Keep a month as its first day, and adding, comparing and showing it stay simple.

Additional Resources​