📅  最后修改于: 2022-03-11 14:45:09.006000             🧑  作者: Mango
import tkinter as tk
from tkcalendar import DateEntry
window = tk.Tk()
DateEntry(window, date_pattern='mm/dd/yyyy').pack() # custom formatting, mm/dd/yyyy
DateEntry(window, locale='en_US').pack() # default formatting
window.mainloop()