Apex Double, Long, Date, Datetime & Time Data Types Explained - Salesforce Apex Tutorial Part 6

Опубликовано: 04 Май 2026
на канале: SFDC Stop
306
12

Hello Trailblazers, in this video, we'll dive deep into the world of apex double, long, date, datetime and time data types. To be specific, we'll cover the following:

1. Double vs. Decimal: When to use each for precise calculations
2. Demystifying the "L" suffix: Understanding Long data types for large numbers
3. Date Creation Made Easy: Using newInstance() to build custom dates
4. String to Date and Back Again: Seamless data conversion for flexibility
5. Datetime and Time: Mastering time manipulation with newInstance()

Chapters:
0:00 Introduction
0:07 Double data type
0:54 How is double data type different from a decimal?
1:40 Long data type
2:28 L suffix in Long data type
3:18 Date data type
5:20 Converting string to date and other operations
8:18 Datetime data type and it's operations
10:37 Time data type
12:52 Wrapping Up

Resources:
1. Code Snippet: https://www.sfdcstop.com/2024/04/vari...
2. Salesforce Documentation on Primitive Data Types: https://developer.salesforce.com/docs...
3. Salesforce Documentation on Variables: https://developer.salesforce.com/docs...

Other Playlists:
1. Apex Data Structures Tutorial:    • Apex Data Structures Tutorial  
2. Salesforce LWC Tutorial Series:    • Salesforce Lightning Web Component (LWC) T...