3 Answers
3

I've used Jared's approach several times successfully, although I agree that Stephen Harris' answer should also now work (but it's a more recent addition to WP_Query which wasn't available at the time I was building an events listing). Depending on the date format you are suing to store the date, you might also need to use something like the following to display the date properly (this is probably basic if you come from a PHP background, but it had me stumped for a while).

To use the WordPress API, you can use get_posts and specify orderby 'meta value' (where you specify the meta key to be the key of the associated date). Assuming your post type is called 'event' and the date custom field is called 'date':