vead
Full Member level 5

Hello everyone
I want to compare current date with Alarm dates which is in dd/MM/YYYY string format
This is the data structure that is used to store the current date
This is the data structure that is used to store the Alarm date
Start function
Current date : 01/10/2015
Alarm dates :02/10/2015, 04/10/2015, 06/10/2015
Compare current date with alarm date
If current date match with Alarm date 02/10/2015, than compare next Alarm date
If current date match with Alarm date 04/10/2015, than compare next Alarm date
If current date match with Alarm date 06/10/2015, than compare next Alarm date
How to use If...Else statement to compare current date with Alarm date ?
I want to compare current date with Alarm dates which is in dd/MM/YYYY string format
This is the data structure that is used to store the current date
Code C - [expand] 1 2 3 4 5 typedef struct { int day; int month; int year; } Date ;
This is the data structure that is used to store the Alarm date
Code C - [expand] 1 2 3 4 5 typedef struct { int day; int month; int year; } Alarm_Date ;
Start function
Code C - [expand] 1 2 3 4 5 int main () { }
Current date : 01/10/2015
Alarm dates :02/10/2015, 04/10/2015, 06/10/2015
Compare current date with alarm date
If current date match with Alarm date 02/10/2015, than compare next Alarm date
If current date match with Alarm date 04/10/2015, than compare next Alarm date
If current date match with Alarm date 06/10/2015, than compare next Alarm date
How to use If...Else statement to compare current date with Alarm date ?
Last edited by a moderator: