Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDatetime leap year problem

Status
Not open for further replies.

indupriya9

Programmer
Oct 29, 2002
99
NZ
Hi there

I have a formula field that has the following formula.

Date(year(CDateTime ({CDR.dateTimeConnect}/86400)) + 70,
month(CDateTime (({CDR.dateTimeConnect} + 46800)/86400)),
day(CDateTime (({CDR.dateTimeConnect} + 129600)/86400))
)
This works well all of last year. But this year after the 28th of February it stopped working and gives an error message as follows:

A day must be between 1 and the number of days in a month.

Can somebody let me know what I should be doing

Thanks
ip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top