how to get the current date in FMP ?

how to get the current date in FMP ?

am 15.04.2008 11:54:12 von chrem

Bonjour,

I would like to use the "date of to day" in some FM scripts (I am
currently using FMP 9). But I could not find any function nor variable
returning/containing this value !
This is to display tasks which have to be done for the day, I will
compare the "task->dueDate" with the current date and display it if it
matches.

Thanks for your help

Christophe

Re: how to get the current date in FMP ?

am 15.04.2008 12:29:02 von E W P Appeldoorn

Try the helpfile and look for date functions.

keep well, Ursus

"chrem" schreef in bericht
news:48047b44$0$28799$426a34cc@news.free.fr...
> Bonjour,
>
> I would like to use the "date of to day" in some FM scripts (I am
> currently using FMP 9). But I could not find any function nor variable
> returning/containing this value !
> This is to display tasks which have to be done for the day, I will compare
> the "task->dueDate" with the current date and display it if it matches.
>
> Thanks for your help
>
> Christophe

Re: how to get the current date in FMP ?

am 15.04.2008 14:46:11 von chrem

E W P Appeldoorn a écrit :
> Try the helpfile and look for date functions.
>
> keep well, Ursus
>
> "chrem" schreef in bericht
> news:48047b44$0$28799$426a34cc@news.free.fr...
>> Bonjour,
>>
>> I would like to use the "date of to day" in some FM scripts (I am
>> currently using FMP 9). But I could not find any function nor variable
>> returning/containing this value !
>> This is to display tasks which have to be done for the day, I will compare
>> the "task->dueDate" with the current date and display it if it matches.
>>
>> Thanks for your help
>>
>> Christophe
>
>
Thanks Ursus, but .... it did not help, I just want to know how to
define in FMPro smth like : action->dueDate =< date(currentDate)

date(currentDate) is my problem, FMPro does not accept it !

Re: how to get the current date in FMP ?

am 15.04.2008 15:15:37 von chrem

E W P Appeldoorn a écrit :
> Try the helpfile and look for date functions.
>
> keep well, Ursus
>
> "chrem" schreef in bericht
> news:48047b44$0$28799$426a34cc@news.free.fr...
>> Bonjour,
>>
>> I would like to use the "date of to day" in some FM scripts (I am
>> currently using FMP 9). But I could not find any function nor variable
>> returning/containing this value !
>> This is to display tasks which have to be done for the day, I will compare
>> the "task->dueDate" with the current date and display it if it matches.
>>
>> Thanks for your help
>>
>> Christophe
>
>
Finally it seems that "get(CurrentDate)" do the job.
Thanks Ursus, your answer shown me that it was at least possible

Best Regards,

Christophe

Re: how to get the current date in FMP ?

am 15.04.2008 19:45:03 von d-42

On Apr 15, 3:29 am, "E W P Appeldoorn" wrote:
> Try the helpfile and look for date functions.
>
> keep well, Ursus

Ursus,

While I'm all for telling people to RTFM, in this case its not in the
date functions, its a "Get" function as I'm sure you know, but you may
not know that there is perversely and annoyingly no mention of it
whatsoever in the help about 'date functions'. I've seen lots of
people get tripped up on this, even if they read the help.

-cheers,
Dave

Re: how to get the current date in FMP ?

am 16.04.2008 06:25:44 von Helpful Harry

In article <48047b44$0$28799$426a34cc@news.free.fr>, chrem
wrote:

> Bonjour,
>
> I would like to use the "date of to day" in some FM scripts (I am
> currently using FMP 9). But I could not find any function nor variable
> returning/containing this value !
> This is to display tasks which have to be done for the day, I will
> compare the "task->dueDate" with the current date and display it if it
> matches.
>
> Thanks for your help
>
> Christophe

The function you want is: Get(CurrentDate)

The "Get" functions have lots of useful abilities.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

Re: how to get the current date in FMP ?

am 16.04.2008 07:26:39 von chrem

Helpful Harry a écrit :
> In article <48047b44$0$28799$426a34cc@news.free.fr>, chrem
> wrote:
>
>> Bonjour,
>>
>> I would like to use the "date of to day" in some FM scripts (I am
>> currently using FMP 9). But I could not find any function nor variable
>> returning/containing this value !
>> This is to display tasks which have to be done for the day, I will
>> compare the "task->dueDate" with the current date and display it if it
>> matches.
>>
>> Thanks for your help
>>
>> Christophe
>
> The function you want is: Get(CurrentDate)
>
> The "Get" functions have lots of useful abilities.
>
> Helpful Harry
> Hopefully helping harassed humans happily handle handiwork hardships ;o)
Thanks a lot to all for your help,
Have a nice day,
Christophe

Re: how to get the current date in FMP ?

am 16.04.2008 19:58:18 von E W P Appeldoorn

"d-42" schreef in bericht
news:2077fb23-ad67-4f91-8717-e7d97df36523@w5g2000prd.googleg roups.com...
> On Apr 15, 3:29 am, "E W P Appeldoorn" wrote:
>> Try the helpfile and look for date functions.
>>
>> keep well, Ursus
>
> Ursus,
>
> While I'm all for telling people to RTFM, in this case its not in the
> date functions, its a "Get" function as I'm sure you know, but you may
> not know that there is perversely and annoyingly no mention of it
> whatsoever in the help about 'date functions'. I've seen lots of
> people get tripped up on this, even if they read the help.
>
> -cheers,
> Dave
>
>
>

Your concern has been noted, and I agree that the get(currentdate) (and
curenthosttimestamp and currenttimestamp) should be listed under the date
functions in the help file. I should have directed the OP to the get
functions.

Keep well, Ursus