Frappe.datetime.month_start()

Hi I tried using frappe.datetime.month_start(“2022-05-14”). I suppose that the result would be 2022-05-01 but when I tried to look at it in the console the result 2022-02-01. Why is that?

@Rabie_Moses_Santilla frappe.datetime.month_start() will return the start date of current month.