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
Stephen E 4Stephen E 4 

Value 'Wed Apr 25 00:00:00 GMT 2018' cannot be converted from Text to com.force.swag.soap.DateOnlyWrapper

Hello All.

I know there is a current limiation to dates fields and the inputhidden fuction in salesforce (https://success.salesforce.com/issues_view?id=a1p300000008dpwAAA)

However, I am getting this same error when the page is displaying a date field on a radio button option


Example:

assetToGet and assetGot are both instances of a custom object. 'mf' is the the repeat loop variable that contains the field names. So its dynaymically creating radio buttons. However, when selecting an option that is a date field and writing back to salesforce, I get an error (Value 'Wed Apr 25 00:00:00 GMT 2018' cannot be converted from Text to com.force.swag.soap.DateOnlyWrapper)
<apex:selectOption itemLabel="{!assetToGet[mf]}" itemValue="{!assetToGet[mf]}" ></apex:selectOption>
<apex:selectOption itemLabel="{!assetGot[mf]}" itemValue="{!assetGot[mf]}" ></apex:selectOption>

Is this also another limitation?