something like.
int d,m,y;
str s;
date dt;
s = ...... // holds you date string from ascii
d = Str2Int(SubStr(s,1,2));
m = Str2Int(SubStr(s,4,2));
y = Str2Int(SubStr(s,7,4));
dt = MkDate(d,m,y); // I'm not sure if the order is day month year
==================================
regards / mfg / mvh / mvg / Kve�ja
michael
p.s.: "tech is back"
__ __ ___ ___
\ / | |
\/ | | __________________ cut off here
/\ | |
/ \ | |
-- -- --- ---
-----Urspr�ngliche Nachricht-----
Von: k_otickashka [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 15. Juni 2004 20:24
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Date Conversion
Hi there, I am reading a file with some data which contains dates. I
would like to put these dates in a table that I've created. The field
on my table is a date field. However when reading the file and
converting the string to a date (Str2Date with the format DMY i.e.
123) it is blank. If I use the format YMD, it copies the date but
incorrectly for example the file has 01/04/2003 but when using YMD,
it copies 04/01/2000. Please help.
Yahoo! Groups Links
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

