today
Returns the current date as a serial Julian date.
Excel: TODAY
Controller:
CodeCogs
Interface
#include <codecogs/units/date/today.h>
using namespace Units::Date;
| int | today ()
Returns the current date as a serial Julian date.
<span align="right" style="background-color:99FF99"><strong>Excel: TODAY</strong></span> |
These functions are available for Microsoft Excel (
Login to download):
Use the following HTML code to embed the calculators within other websites:
| Name | HTML Code |
|---|
today
Returns the current date as a serial Julian date.
Excel: TODAY | |
Today
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.
You must login to leave a messge