Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Subtract 14 days from a date

Hi,

I would like to subtract 14 days from a dates with the format 'DD.MM.YYYY hh:mm:ss[.fff]' and obtain as a result a date with the same format but 14 days earlier.

I believe this might be simple to solve but I'm struggling with this and I would appreciate if anyone could help me.

Thanks in advance!

Mariana



1 Solution

Accepted Solutions
disqr_rm
Partner - Specialist III
Partner - Specialist III

Try this:

=date(OriginalDate-14, 'DD.MM.YYYY hh:mm:ss.fff')



View solution in original post

5 Replies
disqr_rm
Partner - Specialist III
Partner - Specialist III

Try this:

=date(OriginalDate-14, 'DD.MM.YYYY hh:mm:ss.fff')



Not applicable
Author

Hi,

I already tried it and it creates random dates but these dates have nothing to do with OriginalDate -14.

Any more suggestions?

Thanks,

Mariana



Not applicable
Author

Sorry!

I was looking for the wrong field...I think I'm just too tired ...

Your suggestion works!

Thanks once again.

Mariana

Not applicable
Author

Hi, did you know how to get avegare sales of 14 days ago? It just like getting sales daily but only 14 days ago... 🙂 thanks.

naveen409
Contributor III
Contributor III

Hi Disqr_rm,

I am having similar question like this.

I want to See like First 7 Days of a month and 14 , 21, 28 days of a month 

Can You help me?

Thanks in advance