Skip to main content
Announcements
Global Transformation Awards submissions are open! SUBMIT YOUR STORY
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problems with dates

Hi,

I've a little problem with dates.

I've a 'Date' field that contains all the possible dates within the active date range, the problem is to compare this field with two more fields on the application to obtain a resultant IF clause that defines for example if a employee is contracted on this date range depending on his contract starting date and his contract finishing date...

I' hope i've explained it correctly,

Thank you,

Sam1980

4 Replies
manishkumar75
Partner - Creator II
Partner - Creator II

Hi Sam,

Have you tried comparing date with providing the format :

if ( date(DateColumn,'MM/DD/YYYY') > date([Contract Starting Date],'MM/DD/YYYY'),'Expression' ,'Else Expression')

- Manish

Not applicable
Author

Yes,

I've tried this but it doesn't work properly, I think that the main problem is that we're selecting one month and then Qkv tries to compare a group of dates (all the month days) with one single date and that's obiusly not correct...

Don't you have any suggestions about that?

Thanks

sam

Not applicable
Author

Hi Sam,

Try it out with sample file attached. i have used calendar object to select the dates.

Thanks

Saran.

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Sam,

I'm not sure I understand your problem... A sample could help...

You might be better off linking the dates in the data structure, using INTERVALMATCH, rather than messing with IF formulas.

Oleg