If you want to be able to do calculations with dates (such as find the number of days between dates, or add 15 days to a date), you should use the _____ data type. Group of answer choices TIMESTAMP FLOAT DATE VARCHAR
Added by James B.
Step 1
In this case, the purpose is to perform calculations with dates, such as finding the number of days between dates or adding a certain number of days to a date. Show more…
Show all steps
Your feedback will help us improve your experience
Supreeta N and 99 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Use the Date object to create an age calculator. Create three selection lists that allow users to select the month, the day, and the year when they were born. For the year selection list, display the years 1900 to 2100. Perform appropriate data validation. Include a button that performs the calculation and displays the following data: the user's age in years, months, days, and how long a person has been living in total months, total days, total hours, and total minutes. Finally, display the number of days until the user's next birthday. Display the data with the formatting of your choice. For example, if the birthday is Aug. 4, 1976, and today's date is July 4, 2017, The age is: 40 years 11 months 0 days You have lived: 491 months 14,944 days 358,656 hours 21,519,360 minutes Next Birthday in: 31 days
Supreeta N.
Donna D.
Aarya B.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD