Program to find current date and time


#include <time.h>
#include <stdio.h>

  main()
  {
    struct tm *ptr;
    time_t lt;
    lt = time(NULL);
    ptr = localtime(&lt);
    printf(asctime(ptr));
    getch();
    //return 0;
  }

Comments

Popular posts from this blog

Customize User's Profile in ASP.NET Identity System

Migrating database from ASP.NET Identity to ASP.NET Core Identity