I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL
COST (GBP)
this unit 0.28
sub units 0.00
+
0
UnitsDate

today

Returns the current date as a serial Julian date. Excel: TODAY
Controller: CodeCogs

get GPL add to cart

Interface

C++
Excel
HTML

Today

 
inttoday )
Returns the current date as a serial Julian date; the number of days since 24 November 4714BC (in the Gregorian calendar).

Example 1

To output todays date in the Gregorian and Julian calendars
#include <stdio.h>
#include <codecogs/units/date/today.h>
#include <codecogs/units/date/dateymd.h>
using namespace Units::Date;
 
int main()
{
  int d,m,y;
  dateYMD(today(), y,m,d);
  printf("\n The Gregorian date is: %d/%d/%d", d,m,y);
  dateYMD(today(), y,m,d, cal_Julian);
  printf("\n The Julian date is: %d/%d/%d", d,m,y);
  return 0;
}

Authors

Will Bateman (Sep 2004)
Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.