Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2003, 09:40 AM
Junior Member
 
Join Date: Oct 2003
Posts: 15
Default Database and Dates

Hi...
I just began with swfKit, seems great.
but..
I try to use ADO, which works perfectly fine, except the following thing I can't fix:
In my mdb file, I have a date field (format 01/09/1944)
when I take it from script, I get a real number: 7.33363e+011
using the following line:
DateDeDiffusion=record.Fields(1).Value.toString();
I can't manage having a string format...

any idea?
thanks by advance,
P.
Reply With Quote
  #2 (permalink)  
Old 11-03-2003, 10:20 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re:Database and Dates

I don't know if this is the shortest way.
But I recompose the date using the date methods

Code:
DateDeDiffusion = record.Fields(1).Value.GetDate() + "/" 
                   +record.Fields(1).Value.GetMonth() + "/" 
                   + record.Fields(1).Value.GetYear()
Reply With Quote
  #3 (permalink)  
Old 11-04-2003, 02:47 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Database and Dates

Please try

DateDeDiffusion=new Date(record.Fields(1).Value);
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:37 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.