function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
There is no standard method to acheive it, So you need to create and custom picklist.
Class:
public List<SelectOption> gettimevalue() {
List<SelectOption> options = new List<SelectOption>();
DateTime dt = DateTime.newInstance(2000, 1, 1, 0, 0, 0);
integer i =1;
List<String> timelist = new List<String>();
while(i < 48){
dt = dt.addminutes(30);
options.add(new SelectOption('dt.format().substringAfter(' ')','dt.format().substringAfter(' ')'));
i++;
}
}
On VF Page:
<apex:selectOptions value="{!timevalue}"/>
The above code will help you acheive the picklist value a/c to your requirement.