Can the Labeled Value widget Display Leading Zeros from RTC time data?

Your answer was right there in the link you provided… works just fine for a labled display

This is what I use:

char currentTime[9];
char currentDate[11];

void timedateDisplay() {
sprintf(currentTime, "%02d:%02d:%02d", hour(), minute(), second());
sprintf(currentDate, "%02d/%02d/%04d", month(), day(), year());
Blynk.virtualWrite(V0, currentTime);  // Send time to Display Widget
Blynk.virtualWrite(V1, currentDate);  // Send date to Display Widget
}

image

Of course you still need any RTC stuff :wink:

1 Like