Are you sure? I thought that it would be 4,5714285714285714285714285714286 because it is "1st Feb nextyear" / 7D = 32 / 7
First of all: :shock:
second: can someone explain this to me, please?maybe the CM' / '7D' is done before '+1Y-CY+1M+5D-CM' ?
Yes, im sure that '+1Y-CY+1M+5D-CM' / '7D' is equal to 28.57142857. But only TODAY
third: I have a doubt...
Dateformula := df1 + '+' + df2;
all the variables are dateformula datatype.
df1 + '+' + df2 <-- this does an implicit correction of the two df to text.
Dateformula := ... <-- this does an implicit correction from text to df.
Am I correct?
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
We are just trying to illustrate the nonsense of the request to be able to do * and / with the dateformulas...
For sure, i am :shock: because of the knowledge of you 2...i agree it's pretty useless to * or / dateformulas...
But studying useless things can uncover more usefule ones..
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
all the variables are dateformula datatype.
df1 + '+' + df2 <-- this does an implicit correction of the two df to text.
Dateformula := ... <-- this does an implicit correction from text to df.
Ok, now i'm following you...perfect, i misunderstood a thing of 2...and i've been completely fooled by the '/7D'...which is not possible, of course They said it is not possible and then they do it?what the?
Kine, put more smilies the next time!
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
Comments
What is possible is to convert both date formulas to text, and add or substract them.
Dateform1 = 1Y
Dateform2 = 1M
Dateform3 = Dateform1 + '+' + Dateform1 : (1Y+1M) - this will work
Dateform3 = Dateform1 + '-' + Dateform1 : (1Y-1M) - this will also work
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
What result will have this: '+1Y-CY+1M+5D-CM' / '7D' ?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
second: can someone explain this to me, please?maybe the CM' / '7D' is done before '+1Y-CY+1M+5D-CM' ? third: I have a doubt...
all the variables are dateformula datatype.
df1 + '+' + df2 <-- this does an implicit correction of the two df to text.
Dateformula := ... <-- this does an implicit correction from text to df.
Am I correct?
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
200D / 7D gives 28.57142857 (D gets reduced)
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
But studying useless things can uncover more usefule ones..
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
They said it is not possible and then they do it?what the?
Kine, put more smilies the next time!
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Ah, I understand now. The difference is: today as the base, I took the beginning of the year to calc the number of days to the date to divide... :-$
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.