datetime format

Michael Peppler mpeppler at peppler.org
Thu Dec 20 10:52:13 EST 2001


Bradley Bell writes:
 > On Tue, Dec 18, 2001 at 02:09:44AM -0500, James K. Lowden wrote:
 > > Hi Bradley, 
 > > 
 > > Bradley Bell wrote:
 > > > isql uses db-lib, so maybe this is a limitation of db-lib?
 > > 
 > > What you're seeing in isql is db-lib's default conversion, the result (I
 > > assume) of calling dbbind to make a string of a datetime field.  A
 > > db-lib application can call dbdatecrack() and construct any string it
 > > likes (or rely on server-side conversions, of course).  
 > 
 > Ah, I think I see now.  I think that php's mssql module does this.
 > Maybe I should try and make the sybase modules follow the same convention
 > (I'm using the sybase_ct, so I think I would need to use cs_dt_info().

Actually that'd be cs_dt_crack() (although I don't know if FreeTDS
implements that yet).

Michael
-- 
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler at peppler.org - mpeppler at mbay.net
International Sybase User Group - http://www.isug.com



More information about the FreeTDS mailing list