User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:dos.h:getdate

getdate

description of getdate

Program to print the current system date, getdate c code below explain how to use this function to print computer date.

#include<stdio.h>
#include<dos.h>
 
int main(void)
{
   struct date d;
   getdate(&d);
   printf("Date is %d/%d/%d\n",d.da_day,d.da_mon,d.da_year);
   return 0;
}

output of getdate c example

  Date is 20/01/2012

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/dos.h/getdate.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz