Hi all,
How to add months to a field based on other field (datetime)?
In FastReport, this can be done with : AddMonths([Field],n).
But in stimulsoft there seem no AddMonths function.
AddMonths
Re: AddMonths
Hello,
In the NET products you can use any .NET functions:
YourDateTimeValue.AddMonths(Int32)
https://msdn.microsoft.com/en-us/librar ... .110).aspx
Thank you.
In the NET products you can use any .NET functions:
YourDateTimeValue.AddMonths(Int32)
https://msdn.microsoft.com/en-us/librar ... .110).aspx
Thank you.
Re: AddMonths
Thanks for the reply Alex K.
And where do i put this code? in an expression?
I tried using Expression :
{invoice.invDate} and from intellisense, the options are alias, name, nameinsource, and type.
And where do i put this code? in an expression?
I tried using Expression :
{invoice.invDate} and from intellisense, the options are alias, name, nameinsource, and type.
Re: AddMonths
Hello,
Please check the following expression:
{invoice.invDate.AddMonths(1)}
Thank you.
Please check the following expression:
{invoice.invDate.AddMonths(1)}
Thank you.
Re: AddMonths
Thank you.
I just think about intellisense without trying it.
I even once tried to use System.Convert.ToDateTime
I just think about intellisense without trying it.
I even once tried to use System.Convert.ToDateTime
Re: AddMonths
Hello
Please let us know if you need any additional help.
Thank you.
Please let us know if you need any additional help.
Thank you.