Introduction

Data Type is the type of data in the programming. They have predefined characteristics. When a program stores the data in a variable then each variable must be assigned a specific type of data. Some common data type is integer, float, string etc.

Classes of data types

There are many types of classes of data types, which are as follows.

  1. Binary data type
  2. Boolean data type
  3. Numeric data type
  4. String data type
  5. Date & Time data type
  6. TimeSpan data type

Binary Data type

In the binary data type you can store any type of binary data Binary data is row data. There are many types of binary data, Which are as follows

Byte data type

Image data type

Boolean data type

There are two values in Boolean data type which are 'true' & 'false'. There are only two value possible i.e.' true' & 'false'. The Boolean data type also implement as 0 & 1.The meaning of 0 is false and 1 is true.

Numeric data type

There are many numeric data types in LightSwitch. Which are as follows

  1. Integer data type
  2. Float data type

Integer data type

Short Integer

Integer

Long Integer

Float data type

Double

Decimal

Single

Money

String data type

String is a set of characters or sequence of character. Which are typically used to represent words and text. There are three string type in LightSwitch, Which are as follows

String

PhoneNumber

EmailAddress

Date & Time data type

Date and Time data types are used for values which contain date and time.The date data type is used to specify a date and time data type is used to specify time.

TimeSpan data type

A TimeSpan data type is a difference between the two DateTime data type.

Summary

So data type is a type of data which is used in the programming. It is very necessary for declare the variable before using it.