Doing it through SQL:
select date_format(now(), '%m/%d/%Y')
Replace now() with your variable and give it a whirl.
On Thu, Oct 9, 2008 at 11:08 AM, Moochie <[EMAIL PROTECTED]>wrote:
>
>
> How can I convert the following dateformate?
>
> puts "2007-12-30".strftime("%m/%d/%Y")
> puts "2007-12-30".to_a.strftime("%m/%d/%Y")
>
> The I've pulled the date from the database, but I want to format as
> 12/30/2007.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---