How to get the current system date in C

1 Answer

0 votes
#include <stdio.h>
#include <stdlib.h>
 
int main(void) {
	system("date");
}
     
 
      
/*
run:
       
The current date is: Fri 07/03/2020
  
*/

 



answered Jul 3, 2020 by avibootz

Related questions

1 answer 178 views
2 answers 198 views
1 answer 163 views
1 answer 174 views
1 answer 137 views
...