Hi > Because i compare two DatePtr format. > for example, 12.12.2003 < 14.12.2003 > > your function returned month, day,year values. > > how do i create Date from (month, day,year)???
day, month, year is a date :-) You are looking for somethink like seconds / days since xxx? -> DateToDays() since 1.1.1904, all you need to do is to fill the DateType structure (just be carefull, date.year are the years - 1904) Another hint: If you just want to compare dates (and don't care about the real difference) use the 2004-01-28 format. So you can do simple string comparison. by(e) Stephan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
