filmov
tv
Excel VBA Introduction Part 58.10 - SQL for Excel Files - Date Expressions

Показать описание
This video teaches you how to write calculations with dates in your SQL queries for Excel files. You'll learn how to format dates using the FormatDateTime and Format functions, how to extract parts of dates using the Year, Month, MonthName, Day, Weekday, WeekdayName and DatePart functions and how to create a date from other values using the DateSerial and DateValue functions. You'll also learn how to create calculations based on the current date using the Date and Now functions, how to calculate past or future dates using the DateAdd function and how to calculate the difference between dates using the DateDiff function.
Chapters
00:00 Topic List
00:41 The Basic Setup
03:05 Formatting Dates
05:35 A Difference in Data Types
07:31 The Format Function
09:13 Custom Date Formats
11:27 Calculating Year, Month, Day and Weekday
13:35 Calculating Month Names
15:27 Calculating Weekday Names
18:46 The DatePart Function
20:44 Constructing a Date with DateSerial
23:19 Converting Text to Date with DateValue
25:43 Writing Dates in Criteria
29:21 Using Date Functions in Criteria
31:30 Using Date Functions to Sort Results
32:31 Calculating the Current Date and Time
35:12 Criteria Based on the Current Date
36:29 The DateAdd Function
39:57 Calculating Future Dates
42:49 Calculating the Difference Between Dates
44:58 DateDiff Does Not Calculate Age
46:24 Calculating Age in Years
50:34 Combining Functions in One Expression
52:50 What's Next?
Комментарии