Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 517

A value that indicates a particular day and time, such as a timestamp.

1 vote
1 answer
1k views

SubString of a Date in Apex?

I want to show the first ten characters from a DateTime (CloseDate on Opportunity): o.CloseDate.SubString(0,10) I just want the "2012-11-15" reference pulled out. What am I missing here? …
AMM's user avatar
  • 4,724
6 votes
3 answers
19k views

Date Calculation in Apex?

I am lost on how to Calculate the difference between two dates (days): temp_LatestGapLen = temp_PB_CurrSubBeg - temp_PrevSubEnd; Left variable is defined as Integer, the other two are Dates. Erro …
AMM's user avatar
  • 4,724
5 votes
2 answers
11k views

Time Zone (and Daylight Savings) calculations (to a Text field)

< 1 , 24 , 0 ) ) & ":" & MID( TEXT( Event_Date_Time__c ), 15, 2 ) --- Added 2014-04-02 --- My feeling on this is that until SF fixes or adds functionality to this so that TEXT() calls to the DateTime
AMM's user avatar
  • 4,724