Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
date format support in roo
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
PAV  
View profile  
 More options Apr 30 2011, 10:23 am
From: PAV <pascal.verlin...@gmail.com>
Date: Sat, 30 Apr 2011 07:23:40 -0700 (PDT)
Local: Sat, Apr 30 2011 10:23 am
Subject: date format support in roo
Hi,

I am testing roo and I have a problem reading xlsx files that contain
date formats like '12-apr-11'. When I change this to '12-04-11' it
works fine. But for the format I need, roo always returns a float
instead of a date.
The problem is that I cannot change these files manually to a format
that roo recognizes.
Is there a way to adapt the date formats roo recognizes?

Many thanks for your help!

Pascal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PAV  
View profile  
 More options May 1 2011, 9:01 am
From: PAV <pascal.verlin...@gmail.com>
Date: Sun, 1 May 2011 06:01:02 -0700 (PDT)
Local: Sun, May 1 2011 9:01 am
Subject: Re: date format support in roo
Hi,

I found a way to fix this problem. The float value that roo returns
seems to correspond with the internal float value that Excel is using
for dates. The float value is the number of days since 1 January 1900.
But for some reason you need to subtract 2 days to get it correct. See
also http://www.ozgrid.com/Excel/ExcelDateandTimes.htm (there you can
read that MS counts 29 Feb 1900, but that date does not exist, what
partly explains the subtraction).

Hope this is helpful for others having problems with dates.

Regards,
Pascal

On 30 apr, 16:23, PAV <pascal.verlin...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Preymesser  
View profile  
 More options May 2 2011, 12:57 pm
From: Thomas Preymesser <tho...@gmail.com>
Date: Mon, 2 May 2011 18:57:11 +0200
Local: Mon, May 2 2011 12:57 pm
Subject: Re: [roo] Re: date format support in roo

Hi Pascal,

On 1 May 2011 15:01, PAV <pascal.verlin...@gmail.com> wrote:

> Hi,

> I found a way to fix this problem. The float value that roo returns
> seems to correspond with the internal float value that Excel is using
> for dates. The float value is the number of days since 1 January 1900.
> But for some reason you need to subtract 2 days to get it correct. See
> also http://www.ozgrid.com/Excel/ExcelDateandTimes.htm (there you can
> read that MS counts 29 Feb 1900, but that date does not exist, what
> partly explains the subtraction).

can you send me a spreadsheet file which causes this error? If it is a date
field roo should also return a Date object.

-Thomas

--
Thomas Preymesser
tho...@gmail.com
http://thopre.googlepages.com/
http://thopre.wordpress.com/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PAV  
View profile  
 More options May 21 2011, 10:34 am
From: PAV <pascal.verlin...@gmail.com>
Date: Sat, 21 May 2011 07:34:38 -0700 (PDT)
Local: Sat, May 21 2011 10:34 am
Subject: Re: date format support in roo
Hi Thomas,

I've send you a mail with a sample file today.

Best Regards,
Pascal

On 2 mei, 18:57, Thomas Preymesser <tho...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Preymesser  
View profile  
 More options May 23 2011, 2:38 pm
From: Thomas Preymesser <tho...@gmail.com>
Date: Mon, 23 May 2011 20:38:27 +0200
Local: Mon, May 23 2011 2:38 pm
Subject: Re: date format support in roo

Hello,

On 2011-05-21, PAV <pascal.verlin...@gmail.com> wrote:

>> > I found a way to fix this problem. The float value that roo returns
>> > seems to correspond with the internal float value that Excel is using
>> > for dates. The float value is the number of days since 1 January 1900.
>> > But for some reason you need to subtract 2 days to get it correct. See
>> > alsohttp://www.ozgrid.com/Excel/ExcelDateandTimes.htm(there you can
>> > read that MS counts 29 Feb 1900, but that date does not exist, what
>> > partly explains the subtraction).

>> can you send me a spreadsheet file which causes this error? If it is a
>> date
>> field roo should also return a Date object.

I have fixed this problem. Replace the excelx.rb file in your gem with
the attached file.

-Thomas

--
Thomas Preymesser
tho...@gmail.com
http://thopre.googlepages.com/
http://thopre.wordpress.com/

  excelx.rb
25K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PAV  
View profile  
 More options May 24 2011, 2:58 am
From: PAV <pascal.verlin...@gmail.com>
Date: Mon, 23 May 2011 23:58:19 -0700 (PDT)
Local: Tues, May 24 2011 2:58 am
Subject: Re: date format support in roo
Hi Thomas

Thanks a lot !

Best Regards,
Pascal

On 23 mei, 20:38, Thomas Preymesser <tho...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »