I have two strings that populated with values:
StartDate string is populated with the date and the
StartHour populated with the time in format
When I populate the
ActivityDateTime field, it gives me a value in the AM.
ev.ActivityDateTime = DateTime.valueof(Date.parse(StartDate)+'T'+startHour+':00');
These are the values I'm using to populate the
So when the user picks the time
14:00 or higher in the
ActivityDateTime field, it shows as
How can I define AM or PM in the
Apex Class or make automatically defined?