function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Visual workflow Date fields Bug - Date Subtracts by 1

I have 2 screens - Screen 1 and Screen 2.  I have a date field in the Screen 1.  I chose Today's date (using the standard date picker) and clicked Next.  Now I am in Screen 2.  I clicked Previous to get to Screen 1 and observed that the date now shown is the date field is Yesterday's!! 


Whatever Date I chose, if i click Next and come back to the screen, it is subtracting 1 day from it !! Is this a bug in the flows ? Or Am I doing anything wrong?


Please help


Hmm.. I just tested this and am unable to reproduce it. Are you doing any assignments before the screen 2? 


here is the flow I tested. Save it to a file called "test_date-1.flow" and use the IDE to deploy to your instance. You can use the salesforce ant migration tool as well if you are using it already.


<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="">
<label>test date</label>
<fieldText>today: {!tody_is}</fieldText>
<fieldText>tody is</fieldText>



No, I am not doing any assignments.  Just 2 screens and a date field. 


BTW, I am referring to the cloud based Visual work flow.  Does that affect?


No.. did you try out the sample flow I posted?

The date selected remains when going back from screen 2 to 1 but I have the problem of subtracting 1 from the date when passing a date to a flow plugin.

If for example I select 08-18-2014 in the flow the value received in the Plugin class is 2014-08-17 23:00:00