+ Start a Discussion
RachelMosaicRachelMosaic 

Visual workflow compare dates not working

I have a visual workflow where I set a variable with a date and want to compare a screen input date with my variable's date in a "decision" but it doesn't seem to be working.  I'm trying to use "greater than" or "less than" but neither seem to work.  Anyone else have this trouble or a solution?
SilkcutzSilkcutz
Interesting. You can definitely compare date values. We do. I have you tried allocating the screen input to a variable and referencing the variable instead of the screen input? 
RachelMosaicRachelMosaic
Thanks for your suggestion. I just did and no luck! Any other suggestions?
SilkcutzSilkcutz
Hi RachelMosaic. I definitely have multiple Flows and they include decisions Date1 less than Date 2 which work etc. These dates are being collected from SFC by data lookup rather than screen input. It should work either way but perhaps try seeing if it works for data if called from the database. If so, perhaps write the date to SFC and then recall (although seems a bit pointless). 

To state the obvious the variable you are comparing is date type.