MCPcopy Create free account
hub / github.com/TailsmanDesign/PocketMage_PDA / convertDateFormat

Function convertDateFormat

Code/PocketMage_V3/src/OS_APPS/TASKS.cpp:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160String convertDateFormat(String yyyymmdd) {
161 if (yyyymmdd.length() != 8) {
162 ESP_LOGE(TAG, "Invalid Date: %s", yyyymmdd.c_str());
163 return "Invalid";
164 }
165
166 String year = yyyymmdd.substring(2, 4); // Get last two digits of the year
167 String month = yyyymmdd.substring(4, 6);
168 String day = yyyymmdd.substring(6, 8);
169
170 return month + "/" + day + "/" + year;
171}
172
173void tasksScrollPreview() {
174 u8g2.clearBuffer();

Callers 2

tasksScrollPreviewFunction · 0.85
einkHandler_TASKSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected