Print Date in C

__DATE__ macro will print current date, date is in the format of mmm dd yyyy, mmm is abbreviated of month

#include <stdio.h>
  int main()
{
	char *a;
	a=__DATE__;
	printf("%s",a);
	return 0;
}

output

this code will print current date,run this code into your compiler

Aug 31 2021