Display current date ad time in table

Support forum for MegunoLink
Post Reply
alains
Posts: 17
Joined: Mon Oct 24, 2016 5:44 pm

Mon Sep 23, 2019 9:16 pm

I'd like to display the current date and time in a table:
I tried several ways like this
Serial.println("{TABLE|SET|TimeStart|"+String(now())+"}");
But nothing worked...
philr
Posts: 446
Joined: Mon May 26, 2014 10:58 am

Tue Sep 24, 2019 6:02 am

Hi Alain, looks like it needs to be more like
Serial.println("{TABLE|SET|TimeStart|[Now()]}");

Does that work?

Cheers
Phil
alains
Posts: 17
Joined: Mon Oct 24, 2016 5:44 pm

Tue Sep 24, 2019 7:07 pm

Yes that works. Thanks Phil!
Post Reply