Date

Hello All!

Hopefully you aren't all getting annoyed with my really stupid, yet easy
to answer questions.

Anyway, I'm in need of a way to use the current date and format it in
different ways, ways that I can use it within my program. The format is
as follows.

yyyymmdd

No spaces, example: 20071110 (todays date, Nov. 10, 2007)

:smiley: Thanks in advance.

ยทยทยท

--
Posted via http://www.ruby-forum.com/.

require "date"; Date.today.strftime("%Y%m%d")

ยทยทยท

On Nov 11, 2007 8:18 AM, Tj Superfly <nonstickglue@verizon.net> wrote:

Hello All!

Hopefully you aren't all getting annoyed with my really stupid, yet easy
to answer questions.

Anyway, I'm in need of a way to use the current date and format it in
different ways, ways that I can use it within my program. The format is
as follows.

yyyymmdd

No spaces, example: 20071110 (todays date, Nov. 10, 2007)

:smiley: Thanks in advance.
--
Posted via http://www.ruby-forum.com/\.