• drdocb
  • 0 Points
  • Member since 2011

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 0

I have just started learning APEX but have old C , basic experience.


I am trying to use a date field and time field for my object to allow smoother input of scheduling appointments. I have converted the date to startdate string and time is already a string - I can combine both and was using Valueof method to create the datetime field but the format is invalid as datetime wants yyyy-mm-dd hh:mm:ss and my string is coming out mm/dd/yyyy hh:mm AM or PM.


I guess i can break everything down to day, month, year and then reconstruct but hoped there was a less cumbersome way.  Want the date / time input to input the way the default event page does it.


Any help for this APEX novice is appreciated

  • August 07, 2011
  • Like
  • 0