If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Date Format Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-05, 12:20
IgnacioH IgnacioH is offline
Registered User
 
Join Date: Dec 2004
Posts: 9
Date Format Issue

Hi All,

I'm using Pervasive SQL 7 and I'm looking for a function to parse a date character string from yymmdd into mm/dd/yy. A date field from a table contains date in such format and the application that generates the data (Magic ver. 8.3) doesn't seems able to do the trick.

Thanks,

Ignacio
Reply With Quote
  #2 (permalink)  
Old 01-06-05, 12:45
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Is the field in a Btrieve Date format? If so, it's:
YYYYMMDD
stored as a 4 byte number with the first two bytes being the 4 digit year the third byte being the month, and the fourth byte being the day.
How it's coming back from the database and what programming language you're using will determine the best way to manipulate it.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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