Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 7.2


Dating 101

Working with Dates and Times

Issue: 7.2 (January/February 2009)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 17,424
Starting Page Number: 42
Article Number: 7212
Resource File(s):

Download Icon 7212.zip Updated: 2009-01-02 12:22:34

Related Web Link(s):


Excerpt of article text...

Many years ago I had an idea for a scheduling application. When I began mentally working out the details, however, I was overwhelmed by the complexity of what seemed so simple. Working with dates and times is not as easy as it sounds. Remember all the date chaos associated with the transition to the year 2000?

I never wrote that scheduling app (it's still on my idea plate, so who knows), but I find it interesting that so many other apps I've written have involved dates and times and some of the issues I found too complex in that schedule app. For example, I have a "simple" blogging app I originally wrote in 1999 and have updated over the years (and still use for maintaining my personal website). I never thought about a blogging app as being particularly date/time related, but of course, it is: blog posts must be sorted in chronological order, different date display formats can be used in different parts of the program, and so on.

REALbasic's date class is a powerful class for working with dates and times. However, those new to REALbasic often expect it to do more than it can, or aren't sure, exactly, how to work with it. In today's lesson we'll explore working with dates and times in REALbasic.

...End of Excerpt. Please purchase the magazine to read the full article.