Rachel/Dawn,

Thanks for the info. Turns out I didn't need it.
I was working the R:WebReports and didn't fully understand how the parameter 
was passed.
R:WebReports has the ability to have a where clause. 
Something like this (I don't have access to my code right now)

This worked
WHERE CustomerID = $custid
$custid came from a GET call in the PHP

This didn't work
WHERE CustomerID = $custid AND DueDate = $today
I needed to understand how to better do $today

However I discovered this does work
WHERE CustomerID = $custid AND DueDate = .#DATE

But thanks to all who looked into it with me.

Jan

 


-----Original Message-----
From: "Rachael Malberg" <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Thu, 3 Jun 2010 08:40:27 -0500
Subject: [RBASE-L] - Re: PHP date



     $Tdate = getdate();   
     $curyear=$Tdate["year"];
     $curmonth=$Tdate["month"];
     $curday=$Tdate["mday"];
     echo "Today is $curmonth $curday, $curyear";
 
 
Rachael M
Freelance Developer
(218) 326-2719
www.DragonflyDevelopmentMN.com
----- Original Message ----- 
From: [email protected] 
To: RBASE-L Mailing List 
Sent: Wednesday, June 02, 2010 1:39 PM
Subject: [RBASE-L] - Re: PHP date


Jan, 

I think in php, it's a timestamp value that encompasses the current date and 
time = time(), similar to R:Base .#NOW.  There are various functions that 
parse / format the values if I remember correctly.... it's been a while. 

See http://us.php.net/manual/en/funcref.php 

Dawn Hast



[email protected] wrote on 06/02/2010 02:27:52 PM:

> "jan johansen" <[email protected]> 
> Sent by: [email protected]
> 
> 06/02/2010 02:29 PM 
> 
> Please respond to
> [email protected] 
> 
> To 
> 
> [email protected] (RBASE-L Mailing List) 
> 
> cc 
> 
> Subject 
> 
> [RBASE-L] - PHP date 
> 
> Group, 
>   
> Does anyone know how to handle dates in PHP? 
>   
> I mean if today in R:BASE is .#DATE what is the call in PHP? 
>   
> Jan 
>   
DISCLAIMER:  This electronic message together with any attachments is 
confidential.  If you are not the intended recipient, do not copy, disclose 
or use the contents in any way.  Please also advise us by return e-mail that 
you have received the message and then please destroy.  Evergreen Packaging 
is not responsible for any changes made to this message and / or any 
attachments after sending by Evergreen Packaging.  We use virus scanning 
software but exclude all liability for viruses or anything similar in this 
email or any attachment. 

Reply via email to