From: Robo Date: 2004-03-28T00:09:25+09:00 Subject: Formatting dates and counting words Hi, Just got started on making a real attempt in building a Ruby app, and got some basic questions: How do I format a date? E.g. something like PHP's date() function where it can show a date as a string in various formats: http://www.php.net/manual/en/function.date.php Secondly, given a string, how do I get the first few words from it? e.g. If a string has 50 words, I want the first 10 words return. Thanks Robo