I have a number formula field. It should display current time in hh.mm format. I am writing Date/Time functions but it doesn't seem to work. Please provide solution for this.
-
1Why return a Number instead of a Date/Time?– Dan JonesDec 20, 2016 at 11:58
-
1If you want help with a formula field it is best to include what you have so far so that it is possible to say what you are doing wrong.– Dave HummDec 20, 2016 at 12:00
-
There is a similar post for the solution I think you are seeking.Can you check this and see if it helps you? salesforce.stackexchange.com/questions/42626/…– AbhijeetDec 20, 2016 at 12:03
Add a comment
|
2 Answers
Here is the final formula:
DATETIMEVALUE(TEXT(YEAR(Start_Date__c))+"-" +TEXT(MONTH(Start_Date__c))+"-" +TEXT(DAY(Start_Date__c))+" "+TEXT(VALUE(LEFT(Start_Time__c, 2))+ 7)+ MID(Start_Time__c,3,3)+":00")