Flix01 / imgui

Dear ImGui Addons Branch = plain unmodified dear imgui plus some extra addon.
https://github.com/Flix01/imgui/wiki/ImGui-Addons-Branch-Home
MIT License
396 stars 34 forks source link

ImGui::InputDate not initialize own with today date. initialize label is 1900/01/00. #67

Closed mumin16 closed 2 years ago

mumin16 commented 2 years ago

for that: time_t now = time(0); static struct tm date= *localtime(&now); ImGui::InputDate("Date", date, "%Y-%m-%d")

static char getlabel[255]; strftime(getlabel, sizeof(getlabel), "%Y-%m-%d", &date);