Chapter 8. Calendaring, Right Place, and Right Time

In this chapter, we will cover:

  • Building a CodeIgniter Calendar helper with database results
  • Building an appointment manager with Calendar Library
  • Creating a helper to work with a person's date of birth
  • Working with fuzzy dates in CodeIgniter

Introduction

CodeIgniter comes bundled with many functions and helpers to help support your application when working with time and dates, calendars, and so on. We're going to use a few of them in this chapter, but we will also create a few helpers of our own, which can be useful in everyday tasks, such as calculating a person's age (useful for an age verification script) and working with fuzzy dates (that is, writing a description of the date or time rather than ...

Get CodeIgniter 2 Cookbook 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.