• dev_smile
  • 0 Points
  • Member since 2010

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
  • 4

How to truncate the timestamp from the date object so that the return type is again a valid date which has to be passed to a query to get the result from database.Since in database it is stored without timestamp.

I am working on integrating our SAP system to salesforce.

Can anyone suggest a solution to do this.


Thanks in advance,




I would like to create a Apps from my existing SFDC instance with all the customized objects. My requirement is once the customer installs my Apps and eventime he opens it there should be an automatic data fed by getting transferred from the original SFDC instance to the Apps instance automatically...


Can it be done? If yes please tell me how we can do it?





  • March 29, 2010
  • Like
  • 0

<apex:page id="ats" controller="opportunityController" tabStyle="Opportunity">
  <!-- Begin Default Content REMOVE THIS -->
  <apex:sectionHeader title="new Customer Opportunity" subtitle="Step 1 to 3"/>
  <apex:form id="firstpage">
  <apex:pageBlock title="Customers Information">
  <apex:facet name="footer">
  <apex:outputPanel >
  <apex:commandButton action="{!Step2}" value="next"  styleClass="btn" />
  <apex:commandButton action="{!save}" value="save" onclick="validatephone();"  styleClass="btn" />
  <apex:pageblockSection title="Account Information">
  <apex:panelGrid columns="2">
  <apex:outputLabel value="Account Name" for="accountName"></apex:outputLabel>
  <apex:inputField id="accountName" value="{!account.name}"/>
  <apex:outputLabel value="site" for="accountSite"></apex:outputLabel>
  <apex:inputField id="accountSite" value="{!account.site}"/>
  <apex:pageblockSection title="Contact Information">
  <apex:panelGrid columns="2">
  <apex:outputLabel value="First Name" for="contactFirstName"></apex:outputLabel>
  <apex:inputField id="contactFirstName" required="true" value="{!contact.firstName}"/>
  <apex:outputLabel value="Last Name"  for="contactLastName"></apex:outputLabel>
  <apex:inputField id="contactLastName" value="{!contact.lastName}"/>
  <apex:outputLabel value="Phone" for="contactPhone" ></apex:outputLabel>
  <apex:inputField id="contactPhone" required="true" value="{!contact.Phone}"/>
  <apex:outputLabel value="Residence"></apex:outputLabel>
  <apex:inputText id="Residency" />
  function validatephone()
  var av=document.getElementById("{!$Component.firstpage.Residency}"});
  alert("Plz Enter a valid Number")
  This is your new Page

in this code java script is not working i m a trainee on this plz help me

  • March 29, 2010
  • Like
  • 0