সম্পাদনা
#include <stdio.h> #include <time.h> int main() { char text[50]; time_t current = time(NULL); struct tm *local = localtime(¤t); strftime(text, sizeof(text), "%%Y-%%m-%%d", local); printf("%s", text); return 0; }
পূর্বরূপ