You need to sign in to do that
Don't have an account?
KrishnakumarJ
Is it possible to use java.util.Calendar in Apex class?..
Based current date I need to get the month start date and end date. I have done it using java..
java.util.Calendar cal = Calendar.getInstance();
Can anybody let me know whether it is possible to use java.util.Calendar in Apex class?.
If yes , sample example would be helpful.
No you can't.
Easiest way (as far as I know) to get a calendar control next to a class variable (like a regular SF date field) is creating a Dummy custom object, with a date field. Then in the controller of the page, create a new instance of this dummy object and add the date field for this dummy on your visual force page using an apex:inputfield.
All Answers
No you can't.
Easiest way (as far as I know) to get a calendar control next to a class variable (like a regular SF date field) is creating a Dummy custom object, with a date field. Then in the controller of the page, create a new instance of this dummy object and add the date field for this dummy on your visual force page using an apex:inputfield.
================
import com.sforce.soap.partner.*;
import com.sforce.soap.partner.sobject.*;
import com.sforce.ws.*;
public List getAccountDetails() {
ConnectorConfig config = new ConnectorConfig();
config.setUsername(username); config.setPassword(password);
connection = Connector.newConnection(config);
//Fetching Account Details
}
How to invoke this getAccountDetails() function in APEX page?...