Questions tagged [time]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

How can I create a VF component that follows you like the header bar?

I need a component that will follow you from page to page like the header I need to have a visualforce component that simply shows a timestamp no matter where you are on the org.I was thinking ...
0
votes
1answer
18 views

How to get time left on OrgPartition from Platform Cache?

Is it possible to get the time left from Platform Cache for a particular partition? You initiate by: Cache.OrgPartition orgPart = Cache.Org.getPartition('local.myStore'); You put the value by (...
0
votes
0answers
13 views

A problem with the “Case Age in Business Hours” app

I have a confusing situation on my hands involving the "Case Age in Business Hours" application (this one: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N300000016ccNEAQ ) It is ...
0
votes
2answers
53 views

Format AM/PM DateTime to 24 hour time

I have a data 9/14/2019 4:37:57 PM I want to format this to: 20190914T163757 How do I format it so that if it includesPM to 24hour using ampscript?
1
vote
0answers
72 views

JSON time fields

We have a problem with deserialize and serialize salesforce time fields Since Json and salesforce time fields both consist of "colon" we need to replace with a special character before deserialize ...
0
votes
0answers
17 views

setInterval spikes on Visualforce Page / Works on other HTML Pages

I am trying to use javascript's setInterval() function to create a timer that actions at certain times, however the following Javascript which works outside of Visualforce, jumps from 0 to a random ...
0
votes
0answers
31 views

DateTime newInstance doesnt get in user locale

In my code I try to set datetime based on selected location. The Idea is, when the user select locale and then the time, record will be saved with selected datetime value based on selected locale. But ...
1
vote
0answers
20 views

How to get records created between timeframe in a report

I need to create a report of all the records between 7am to 5pm CST/CDT everyday. How can I achieve this? The solution I tried - Created a formula field which extracts Hours from created date (...
1
vote
0answers
64 views

Is it possible to calculate the difference between 2 Time Fields with Formula?

I am trying to calculate the difference between 2 Time-fields with a FORMULA . (So no DateTime) I know it is possible in Apex, but I am wondering if it is possible in a Formula as well. I tried a lot ...
0
votes
1answer
294 views

Time field based on TimeZone

Is Salesforce time field dependant on timezone. Is the time field value change based on TimeZone.
-3
votes
1answer
595 views

System.SObjectException: Invalid field Name for Contact

I'm Having an Apex Class which I used to deserialize the JSON. I'm calling the function which passed the string and sObject name which is Contact. This is my String which i passed in the function ...
2
votes
1answer
107 views

Format date time field to specific time with AMPscript in Marketing Cloud

I have a question; we are trying to send an appointment confirmation through Journey Builder. Now we are struggling to get the time right. It looks like there is added 1 and sometimes 2 minutes to the ...
0
votes
2answers
83 views

TIMENOW() subtraction

I am trying to find out the difference between the current time and 5PM. I tried numerous variations and I just can't make sense of the results I am getting. Lets say current time is 15:36 (3:34 PM) ...
0
votes
1answer
235 views

Calculate time difference between two date time fields

I have a process builder by which I am calculating the time difference between NOW() and another Case object date field. My formula goes like this Time_Spent__c = NOW() - Start_Time__c However ...
1
vote
1answer
775 views

How to remove AM & PM from Time field?

I have a custom field with DataType is TIME. I want to remove AM and PM from the Field. How can I do this?
0
votes
3answers
830 views

Merge Date & Time field in to datetime field using formula field

We have to separate fields to pick appointment date & appointment time in Custom object. Now we have to filter out appointments between two dates (w/ time), so I need to compare appointment date &...
1
vote
1answer
290 views

Using the wait activity by attribute for time values only

I have a data extension that has all our subscribers and a column with the most optimal hour of the day to send them an email. I want to reference this in my journeys and add this attribute in the ...
2
votes
1answer
2k views

How to output time field in lightning component

I have used a time field which I want to show in a lightning component When I fill 8:00 in my field my result is 30600000 in my lightning component. I have searched for a time tag or formatting but ...
1
vote
3answers
819 views

Time Field on Data Load - “value not of required type: 5:33 PM”

I am attempting to insert some records on a custom object that requires a value in the Time Received field, of type Time. Within an existing record (created manually) the value inside the detail page, ...
3
votes
1answer
2k views

Cannot deserialize instance of time from VALUE_STRING value

I'm trying to parse a Time field from my lightning component to my apex controller by using JSON and deserializing it in apex into an existing Object. But unfortunately I'm always getting the error ...
0
votes
1answer
192 views

Making 24 hours difference in formula

what is 1.8 in this expression. I have seen people using now() + (-1.8) or now() + (1.8) for making 24 hours difference. What exactly is 1.8
0
votes
0answers
17 views

Enable using time type field in our production

We want to use the new time field in prod. However, it doesn't seem to be available yet in our prod. It seems to be there in our sandboxes though. Is there a way we can enable this beta feature?
0
votes
2answers
2k views

Formating the new time field in Visualforce

I am trying to format the new Time field type in Visualforce but with no success. I'm trying to use the same method as i use for date formatting but it does not compile my code with the error: '...
0
votes
1answer
458 views

Time comparison in Apex

I have below code Time startTime = objAvailableTime.StartTime; Time endTime = objAvailableTime.EndTime; List<Time> lstTime = new List<Time>(); ...
0
votes
1answer
87 views

Application limits

My collegue has received the below notification. We have never received this before. Can anyone please advise what action needs to be taken? Your organization has reached its hourly limit for ...
2
votes
0answers
451 views

How to Avoid exceeding CPU Time Limit in Test Classes?

I am currently updating test classes in our org and it seems that most of them are exceeding the CPU Time Limit. They are using the @testSetup to create a lot of test data and it seems that these DML ...
0
votes
1answer
164 views

How to Create Time Lapse duration field

In our organisation multiple teams working on a single Business process (record type of Case). Means multiple teams works on a single Case. So, we have a requirement to calculate how much time taken ...
0
votes
4answers
11k views

How can I get my correct current local time?

I need to get the current time but to be in type DateTime. I use: DateTime now = System.now(); but it returns wrong time. I execute the code in 2017-08-04 00:38:46 AM but it returns 00:38:46:023 ...
0
votes
1answer
343 views

DateTime set to an hour earlier

I have an object of type Time startWorkingTime and object of type DateTime nextBusinessDay. I want to create new object of type DateTime based on startWorkingTime and nextBusinessDay. Here is my code:...
0
votes
0answers
543 views

Creating Time picker in lightning

Can Anyone please help me with creating time picker in lightning ? There is a component ui:inputDateTime for having time & date picker both at the same time and there is a single component for ...
0
votes
1answer
482 views

Datetime field value always show in GMT for all users

I have a requirement for a particular date time field that should be shown in GMT time zone always irrespective of the logged in users time zone. Is that feasible to do? This requirement is for a ...
1
vote
2answers
520 views

Storing time-stamps with millisecond precision

When you have automated processes interacting with your system, it is very common for multiple things to happen within the same second. In order to prove that these events happened in the correct ...
0
votes
0answers
16 views

Unable to update users timezone correctly [duplicate]

User has requested to update timezones. e.g - (GMT-08:00) Pacific Standard Time (America/Los_Angeles) for a user. I update TimesZoneIdKey of this user as - America/Los_Angeles. Expected - (GMT-08:...
1
vote
1answer
1k views

Filter Reports by the Time of their CreatedDate

I figured that the CreatedDate will not show the time in the reports section. So I made a DateTime formula field to take the value from CreatedDate. Now this shows the time value inside the reports. ...
0
votes
1answer
28 views

Test scheduled class

I am scheduling a class which performs some computations I want to know how to track the execution of class apart from viewing scheduled jobs as I have scheduled the class to execute at system time ...
1
vote
0answers
43 views

Alternatives to Time Field? [closed]

SalesForce does not have a Time field type for sObjects which is a real pain. I am working on a scheduling app where users and facilities specify daily blocks of time when they are available (open). ...
0
votes
1answer
94 views

Add 2 Different Times and Return value in time(Formulae field) in HH:MM format

I need results of two fields of type text in time format to be the same time format and then the result has to be time of HH:MM format aswell text in formulae field
0
votes
1answer
32 views

Unable to create time datatype field through visualforce page

I tried to write a formula and extract time field through date time field. But user needs the time field because of specific requirement. I tried to create a Visualforce Page with Static Resources ...
4
votes
1answer
398 views

Account Time Settings

I have set up the Marketing Cloud time zones to GMT. Issue is that every other time setting (automations, imports, etc) run on Central Time. Is this a default setting or is there a way to set ...
2
votes
1answer
583 views

Formula for writing a specific Day of Week date value?

Objective: create a List-View Button that writes the date value of the immediately upcoming Monday to a field in the selected record(s) E.g. if Monday is Dec 5, the expected output for writing a ...
0
votes
1answer
1k views

DateTime formula field to compare to a specific time

I am creating an entry criteria for a milestone to kickoff. A separate workflow rule populates a DateTime field (RMA_Time__c) with NOW(). When RMA_Time__c is populated and the populated time is before ...
0
votes
1answer
61 views

I am getting the following error message - Error: Unknown property 'OpportunityStandardController.line2

Error: Unknown property 'OpportunityStandardController.line2 here is my code up to where I get stuck: <apex:page standardController="Opportunity" showHeader="false" renderas="pdf"> <table ...
1
vote
1answer
54 views

How to utilize buisnessHours class instead of time class

I have a main if statement in my class that utilizes CreatedDate.hour() to execute certain code between 6pm and 8.59am and the ELSE is 9am to 5.59pm which would be within business hours if I could get ...
1
vote
2answers
627 views

DateFormat Function in Marketing Cloud

I would like to have a Date like this: 2016-10-14T08:26:33Z But when i do this: %%=FormatDate(DateAdd(NOW(), "6", "H"), "yyyy-mm-ddT","hh:mm:ssZ", "nl-NL")=%% It returns: 2016-10-14T 09:04:26-...
2
votes
1answer
617 views

AutoSave information every 5 minutes- How to implement?

How would I go about triggering a apex controller method every certain period of time? This is the general idea I need to implement: "Autosave information every 5 minutes on a visual force page". I ...
0
votes
3answers
2k views

Get seconds and milliseconds from date/time in formula field

Is there a way break out the seconds and milliseconds from a date time field in a formula field? WHY: I want our crew people to use check-in and check-out from their mobile device. However, if they ...
1
vote
0answers
113 views

Apex cpu time limit without change anything [closed]

In my instance I could insert or update record with a batch size of 100 records without problem. The last week and with the same code in production we started to get the apex cpu limit and we have to ...
0
votes
2answers
570 views

How to use “hours” apex:inputField type of time

Is that possible to use only hours? below code I can have hours and minutes but I just need hours to display, is there any attribute that needs to set? Visualforce page: <apex:page controller="...
0
votes
1answer
1k views

About createUser method from Auth.SamlJitHandler

for the implementation of Auth.SamlJitHandler I created a person account A and a User account U which are connected using U.RoleId = A.PersonContactId. I can not avoid this step. This makes the ...
0
votes
1answer
667 views

Need to find whether my time stamp is between the business hours

I am trying to implement SLA for Lead management. So handling all the SLA functionalities on a trigger and Apex class. I need help in getting the current time and comparing it to the defined ...