answersLogoWhite

0


Best Answer

The choice of data type for storage the date of birth of a human depends on how the algorithm will use that data.

For algorithms which store this data merely for display purposes, storing the date of birth as a text might be suitable.

In many cases, however, operations such as comparison for equality or greater-than or less-than relationships are required, for example in order to support sorting and searching algorithms. This typically leads to the implementation of a numeric data format, often using a scalar such as a 16-bit or 32-bit unsigned integer. Such a format could, for example, encode the date of birth as the number of dates since January 1st, 1970.

This method limits the maximum age of people on record (1-1-1970) and has a limited lifetime, as it may only support 216 or 232 days in total. While these limitations may be perfectly acceptable in many applications, a more general approach might use a data structure containing distinct numeric fields for the day, month and year, possibly including other details such as the calendar system, or an uncertainty factor (useful when estimating the age of archaeological finds, for example).

Many databases and some programming languages provide built-in support for data types such as Date and Time, which might be suitable for a given application, subject to the application's requirements and limitations imposed by those data types.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the best data type for storing your birthday?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the best type of data type for storing shoe size?

Well, recall that shoes can come in half-sizes. That eliminates integers (and similar).The best data type would be a float.


What type of media is capable of storing digitized data and that uses a laser to write data to it and read data from it?

optical media


What type of form for storing data is represented by 0s and 1's?

Binary.


What is a type of media capable of storing digitized data and that uses a laser to write data to it and read data from it?

Optical media.


What data type allows you to type your birthday in ms access?

You should use the Date/Time data type for this. It allows you to enter dates.


Specifies the kind of data a field can contain?

A field's data type specifies the kind of data it can contain, such as text, numbers, dates, or Boolean values. This helps ensure data integrity by restricting what type of data can be entered into that field, preventing errors and inconsistencies in the database. Choosing the appropriate data type for each field is important for accurately storing and organizing data.


What does logical data type in a database mean?

happy birthday to poo


The data type of an item price?

I am assuming that the question is "What would the best data type to represent a price".Although this is open for debate, in Java I think that the best data type for a price is double and the best data type in C# to be decimal.I hope this answers your question.


What is a data warehouse or data mart?

A facility for storing and retrieving data; a type of server farm. Large facilities are usually duplicated in two or more separate locations to guard against data loss and communication outages.


What type of software is best suited for and organizing and storing information about all the students in a school?

database


What is it that specifies the kind of data a field can contain and how the field is used?

The data type of a field specifies the kind of data it can contain, such as text, numbers, dates, etc. It determines how the field is stored and how operations can be performed on it, like arithmetic calculations and comparisons. The field is used by storing and retrieving data according to its specified data type.


What is the meaning of materials storing?

Materials storing is when businesses use warehouses to store their materials. Managers must make sure they find the best warehouse based on the type of goods they have.