Click here to Skip to main content
15,884,099 members
Articles / Programming Languages / C++
Article

Convert Date Leap year to Gregorian

Rate me:
Please Sign up or sign in to vote.
2.00/5 (7 votes)
31 May 2005 38.8K   1.2K   14   6
Convert Date Leap year to Gregorian (shamsi - Miladi) Calender

Download source code

Download demo code Sample screenshot

This program is a simple example for Convert Date Leap to Gregorian Calender. You just should in this method it's enough That , First merge File's ConvertDate.cpp and ConvertDate.h into your program.

i use of this fuction into file ConvertDate.cpp

convert Date Leap Year To Gregorian :

int CConvertDate::OutDateGregorian (int D,int M,int Y,int what) 

Input:

D ==> Day

M ==>Month

Y ==>Year

what

 if what==0 Output Day

if what==1 Output Month

if what==2 Output Year

 

convert Date Gregorian Calender To Leap Year :

int CConvertDate::OutDateLeap(int D,int M,int Y,int what) ... 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Engineer ArdakanKavosh
Iran (Islamic Republic of) Iran (Islamic Republic of)
I'm from Iran, and Live in Ardakan City.
I'm Computer engineering (HardWare-Software).
I'm Programmer . (VC++ , C++ , Assembly , Basic , C# , Web Programing [ ASP,Php ])

Comments and Discussions

 
Generalmoshkel Pin
mehdi13552-Sep-07 14:27
mehdi13552-Sep-07 14:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.