On Jan 28, 2011, at 11:00 AM, Theodore Petrosky wrote:

> You say 'these are Java'. yes, but how it relates to the backend. I have 
> invoice dates in my database. it is just a date. no time.
> 
> how can I set up Entity Modeler to not use a Timestamp. I tried the Joda Time 
> stuff but it seems that there were problems so it was pulled.
> 
> So I need to rephrase. How can I have a date column in my database and have 
> an object in Webobjects that is date only and not care about times and 
> timezones?

You.  Can.  Not.  

Java does not care what your database thinks.  Java ONLY has a point in time.  
ONLY.  JodaTime extends Java with some more, uh, relaxed attitudes  towards 
dates.

As David alluded to, dates in Java are no ones' idea of fun.


Chuck


> 
> Am I clearer?
> 
> Ted
> 
> 
> 
> --- On Fri, 1/28/11, David LeBer <[email protected]> wrote:
> 
>> From: David LeBer <[email protected]>
>> Subject: Re: how to handle dates alone
>> To: "Theodore Petrosky" <[email protected]>
>> Cc: [email protected]
>> Date: Friday, January 28, 2011, 1:52 PM
>> 
>> On 2011-01-28, at 1:49 PM, Theodore Petrosky wrote:
>> 
>>> so I was out the other night with the really h (sorry
>> wrong forum)
>>> 
>>> How are people handling dates with no timezone (and no
>> time, just the date alone)? I really want to use the date
>> column type and not care about the time nor zone but I
>> haven't figured out a way.
>>> 
>>> I just got bitten with a timezone problem when
>> shifting my app to a different box.
>> 
>> 
>>> There must be a prescribed and easier way.
>> 
>> Really? These ARE java dates we are talking about here.
>> 
>> ;david
>> 
>> --
>> David LeBer
>> Codeferous Software
>> 'co-def-er-ous' adj. Literally 'code-bearing'
>> site:     http://codeferous.com
>> blog:     http://davidleber.net
>> profile:    http://www.linkedin.com/in/davidleber
>> twitter:    http://twitter.com/rebeld
>> --
>> Toronto Area Cocoa / WebObjects developers group:
>> http://tacow.org
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to [email protected]

-- 
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/products/practical_webobjects







Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to