You need to sign in to do that
Don't have an account?
Vivekh88
DateTime picker in VF page
Hi
I have a scenario where i am using a Datepicker in VF page. I am actually comparing that datepicker field with StartDate field of Event object in my SOQL query to list out all event records. But i am getting invalid date error as my Date field used in VF page holds only Date value.
Thanks
Vivek
I have a scenario where i am using a Datepicker in VF page. I am actually comparing that datepicker field with StartDate field of Event object in my SOQL query to list out all event records. But i am getting invalid date error as my Date field used in VF page holds only Date value.
VF Page: <apex:inputText value="{!Startdate}" size="10" id="demo" onfocus="DatePicker.pickDate(false, this , false);" />i am using <apex:inputText> as <apex: Input type='Datetime'> doesnt support IE.
SOQL query used in apex: String soqlQuery = 'select Id,What.name,who.name,Attachment_Tags__c,StartDateTime,EndDateTime,subject from Event where ((StartDateTime >=: Startdate and EndDateTime <=: Enddate) ' + selectedor + ' (What.name = \'' + searchStr2 + '\') '+ selectedAddition +' (Who.name = \'' + searchStr3 + '\') '+ selectedAttachment +' (Attachment_Tags__c = \'' + searchStr4 + '\'))';
Thanks
Vivek