Date Difference Function

Ivan Smahin IvanSmahin at public.kherson.ua
Mon Jul 4 13:25:58 CDT 2005


Hello Erne,

Monday, July 4, 2005, 1:00:17 PM, you wrote:

E> yep! that's a part of what I was looking for... (so what's the use of
E> DatePart function ?)

DatePart is a common function for all cases - including quarter, weeks and so on.

E> so I didn't find a better way to build this comparison date
E> than pass a date string to the method that will be coerced into a  
E> date type by the parser

E> trouble is that if Date format used in DB should change (say from MDY
E> to DMY)
E> I must update the Method formula
E> is there a way to build a date that not depends on format things like
E> Separator (db.DateSep) and dateparts order?

DateField has such method as set_Year, set_Month, set_Day or something similar.
You could try this API way instead of string-based approach.


-- 
Best regards,
 Ivan                            mailto:IvanSmahin at public.kherson.ua



More information about the Valentina mailing list