Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14267
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: Wed Aug 27 19:19:35 CEST 2025

Total time taken to generate the page: 0.04909 seconds