peterfarouk
17th July 2003, 09:37
Is there any function that can get me the "days" part from a given date

for example if todays date is 17/7/2003 is there a function can return the number of days that is passed in that month which is equal to 17
long x=A FUNCTION(date().num)
then x should qual to 17

thankx for your help.I appreciate it.

rupertb
17th July 2003, 09:48
Hi there use the function date.to.inputstr$ (http://www.baanboard.com/programmers_manual_baanerp_help_functions_date_time_zones_date_to_inputstr) and then substring the result to strip out the day portion.

Regards,
Rupert

spartacus
17th July 2003, 09:53
Think you should check "num.to.date(...)"

Spartacus

peterfarouk
17th July 2003, 10:08
Thankx alot Rupertb it works.