John Snape

John Snape

Dates & Times

Slide Duration:

Table of Contents

Section 1: Introduction
Introduction Hello World

46m 9s

Declaring Variables

50m 5s

Accepting Input

14m 11s

Operators, Expressions & Statements

35m 5s

Program Flow Control

36m 35s

Iterations & Looping

19m 4s

Working with Strings

49m 40s

Formatting Strings for Output

23m 15s

Helper Methods

23m 57s

Enumerations & Structures

17m 26s

Commenting & Documenting Code

6m 46s

Arrays, Stacks, Queues & Dictionaries

34m 16s

Generic Lists & Collections

16m 30s

Variable Scope

9m 6s

Reading & Writing Files

23m 10s

Dates & Times

14m 37s

Random Numbers


Handling Exceptions

22m 19s

The My Namespace

18m 49s

Environment Variables

8m 17s

Command Line Arguments

13m 4s

The CD Inventory Program So Far

31m 57s

Section 2: Object Oriented Programming
Introduction to Object Oriented Programming

56m 56s

Understanding & Creating Classes

33m 17s

Understanding Interfaces & Abstract Classes

18m 22s

Static vs. Instance Members

12m 45s

Understanding Inheritance

34m 55s

Understanding Polymorphism

13m 39s

Understanding Delegates

26m 9s

Reading & Understanding Code

37m 23s

Creating a Data Type

40m 42s

Unified Modeling Language & Class Diagrams

22m 24s

Upgraded CD Inventory Program

22m 15s

Section 3: GUI Programming
Introduction to GUI Programming

38m 58s

All About Forms

43m 36s

Handling Form Events


Informational Controls

30m 36s

Command Controls

38m 6s

Grouping Controls

1h 9m 59s

Text Editing Controls

35m 23s

List Selection Controls

42m 23s

Setting Options Controls

25m 58s

Dialog Controls

24m 41s

Graphic Display Controls

32m 45s

Date Setting Controls

18m 29s

Other Controls

13m 28s

Using the Clipboard

9m 31s

Sending Email

22m 30s

Some Sample Programs, Part 1

23m 2s

Some Sample Programs, Part 2

14m 9s

InputBox & Message Box

11m 4s

CD Inventory Program Upgraded with Forms

14m 44s

Section 4: Databases
Introduction to Databases

34m 7s

SQL Server Management Studio & Northwind Database

8m 11s

SELECT Statement

31m 24s

UPDATE & DELETE Statements

16m 56s

INSERT Statement

11m 48s

Creating a Database from Scratch

44m 54s

Querying Lists with LINQ

15m 7s

Using Databound Controls

17m 29s

CD Inventory Program Updated with a Database

15m 29s

Section 5: Conclusion
Where to Go from Here

17m 50s

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Visual Basic
Bookmark & Share Embed

Share this knowledge with your friends!

Copy & Paste this embed code into your website’s HTML

Please ensure that your website editor is in text mode when you paste the code.
(In Wordpress, the mode button is on the top right corner.)
  • - Allow users to view the embedded video in full-size.
Since this lesson is not free, only the preview will appear on your website.
  • Discussion

  • Study Guides

  • Table of Contents

Lecture Comments (2)

0 answers

Post by John Snape on July 27, 2014

The date format of #mm/dd/yyyy# is unchangeable mainly because if you hard code a date into your program, it has to be the same whether it is running in the United States or New Zealand or anywhere else. If you put in the date 2/11/1969 and your local date format is yyyy/mm/dd, then it would result in the date being November 1969, of the year 2, consequently throwing an error.

Because of this, you must always format your dates in any version of Visual Studio as mm/dd/yyyy. Hope that helps.

0 answers

Post by David Llewellyn on July 26, 2014

In the code download Ms Aniston's birthday was entered as 2/11/1969 which to a New Zealander, like me, means 2nd Nov '69 as opposed to the American 11th Feb '69.  When I ran the code, all the dates output in NZ/British type formats and the calculation of her age in days, confirmed in Excel, gives the correct difference of 16602 days.
When I altered the dates to what I would consider to be the correct format i.e. dd/mm/yyyy, Ms Aniston became 16,338 days old (i.e. her birthday was thought to be in November rather than February). Does #aa/bb/cccc# mean specifically US date format and is there some other delimiter for British format.

Dates & Times

  • The DateTime data type is used to hold dates and times
  • Strings use “” to delineate them, DatetIme uses ##
  • Now is used for the current date and time, Today is for the current date and midnight time
  • You can use the String.Format or ToString methods to format your dates and times
  • Some properties of DateTime:
    • .DayOfWeek
    • .Hour
    • .Month
    • .Millisecond
  • You can add or subtract dates and times like you would any other variable
  • .TotalMinutes and .TotalSeconds are other useful methods
  • Some useful methods of DateTime:
    • .AddDays
    • .AddYears
    • .AddSeconds
  • To subtract from DateTime, add a negative amount
  • TimeSpan allows you to give a generic timespan without reference to a specific day or time

    Please sign in to participate in this lecture discussion.

    Resetting Your Password?

    Start Learning Now

    Our free lessons will get you started (Adobe Flash® required).
    Get immediate access to our entire library.

    Membership Overview

    • Available 24/7. Unlimited Access to Our Entire Library.
    • Search and jump to exactly what you want to learn.
    • *Ask questions and get answers from the community and our teachers!
    • Practice questions with step-by-step solutions.
    • Download lecture slides for taking notes.
    • Track your course viewing progress.
    • Accessible anytime, anywhere with our Android and iOS apps.