© Robert E. Beasley 2020
R. E. BeasleyEssential ASP.NET Web Forms Developmenthttps://doi.org/10.1007/978-1-4842-5784-5_11

11. Date and Time Operations

Robert E. Beasley1 
(1)
Franklin, IN, USA
 

11.1 Introduction

Date and time operations manipulate temporal values (i.e., values related to time). Common date and time operations include retrieving the current date and time from the operating system, extracting the components of a date (e.g., year, month, day) or time (e.g., hour, minute, second), adding to or subtracting from the components of a date or time, comparing one date or time with another date or time, determining whether or not daylight saving time is in effect, determining whether or not it is a leap year, determining the interval between two ...

Get Essential ASP.NET Web Forms Development: Full Stack Programming with C#, SQL, Ajax, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.