U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » How to add 6 months to a date?
Re: How to add 6 months to a date? [message #36725 is a reply to message #36702] Fri, 29 June 2012 09:05 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
lectus wrote on Tue, 26 June 2012 16:34

Thanks.

I was playing with U++ Date type and editdate and calendar controls and realized U++ is smart enough to know when a month has 28 or 30 or 31 days.



Not correct. Use:

Date AddMonths(Date date, int months);
Date AddYears(Date date, int years);

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Solved]XML Rpc client will halt when server is not running
Next Topic: GetTimeZoneText() warning
Goto Forum:
  


Current Time: Fri Sep 11 06:02:49 GMT+2 2026

Total time taken to generate the page: 0.00828 seconds