You need to sign in to do that
Don't have an account?

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 force.com 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="http://soap.sforce.com/2006/04/metadata">
<label>test date</label>
<screens>
<name>todayis</name>
<label>todayis</label>
<locationX>296</locationX>
<locationY>253</locationY>
<fields>
<name>todyiswhat</name>
<fieldText>today: {!tody_is}</fieldText>
<fieldType>DisplayText</fieldType>
</fields>
</screens>
<screens>
<name>todays</name>
<label>todays</label>
<locationX>226</locationX>
<locationY>96</locationY>
<connector>
<targetReference>todayis</targetReference>
</connector>
<fields>
<name>tody_is</name>
<dataType>Date</dataType>
<defaultValue>
<elementReference>$Flow.CurrentDate</elementReference>
</defaultValue>
<fieldText>tody is</fieldText>
<fieldType>InputField</fieldType>
<isRequired>false</isRequired>
</fields>
</screens>
<startElementReference>todays</startElementReference>
</Flow>
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?
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