Doesn't appear to be.
Like you, I'm learning php as well
Other characters, like"/", ".", or "-" can also be inserted between the
letters to add additional formatting:
<?php
echo date("Y/m/d") . "<br>";
echo date("Y.m.d") . "<br>";
echo date("Y-m-d");
?>
http://w3schools.com/php/php_date.asp
-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Gary Jeurink
Sent: Sunday, October 27, 2013 1:08 PM
To: 'ProFox Email List'
Subject: RE: mysql workbench
Thanks... Ted corrected my previous version and your solution should work
too. Is it a problem that curDate uses slashes and the rest uses dashes.
It's the firstDate that keeps getting flagged.
Gary Jeurink
-----Original Message-----
From: Virgil Bierschwale [mailto:[email protected]]
Sent: Friday, October 25, 2013 6:49 PM
To: 'ProFox Email List'
Subject: RE: mysql workbench
I'm in class learning how to use quickbooks, so I went ahead and figured it
out
Here you go
<?php
$curdate=date('Y/m/d');
$firstdate=date_create_from_format("j-M-Y","27-Aug-2013");
echo date_format($firstdate,"Y/m/d");
$seconddate=date_create_from_format("j-M-Y","02-Sep-2013");
echo date_format($seconddate,"Y/m/d");
if ($curdate >= $firstdate AND $curdate <= $seconddate);
{
?>
curdate >= firstdate and curdate <= seconddate <?php
}
?>
Like any language, there is half a dozen ways to do it.
For example, you will notice that I specified j-M-Y in the first date
format, and in the echo I specified Y/m/d
That is no big thing.
It just happened that way because of the examples I found on w3schools.
One thing I've found that might help is when you find a command that looks
like it will work on w3schools, click on the example button as it will pop
up a screen and show you how the command is actually used.
-----Original Message-----
From: Virgil Bierschwale [mailto:[email protected]]
Sent: Friday, October 25, 2013 6:16 PM
To: 'ProFox Email List'
Subject: RE: mysql workbench
Sorry, I've been busy with my own stuff and didn't see that you were still
working on this
<?php
$curdate=date('Y/m/d');
$firstdate=date_create_from_format("j-M-Y","27-Aug-2013");
echo date_format($firstdate,"Y/m/d");
$seconddate=date_create_from_format("j-M-Y","02-Sep-2013");
echo date_format($seconddate,"Y/m/d");
?>
I can't leave it up there very long, but if you look at the bottom of the
middle table (to the right of the video in the header), you will see these
two dates
The code above will give you these dates.
I haven't checked the comparison part yet, but if you need help with it, let
me know.
Virgil
N5IVV
-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Gary Jeurink
Sent: Friday, October 25, 2013 5:49 PM
To: 'ProFox Email List'
Subject: RE: mysql workbench
Thanks for your reply but the
False = 0 / N / .F.
True = 1 / Y / .T.
.. is over my head is that associate array?
My biggest block today is how to set the value of a date variable without a
syntax error in PHP
function getCurWeek() {
$curDate = Date('Y/m/d');
$firstDate = DateTime::createFromFormat('Y/m/d', '2013-08-27');
$secondDate = DateTime::createFromFormat('Y/m/d', '2013-09-02');
if ($curDate >= $firstDate && $curDate <= $secondDate)
{
$curWeek = '01';
return $curWeek;
}
First and second date won't fly
Gary Jeurink
-----Original Message-----
From: Stephen Russell [mailto:[email protected]]
Sent: Friday, October 25, 2013 11:32 AM
To: ProFox Email List
Subject: Re: mysql workbench
On Fri, Oct 25, 2013 at 10:58 AM, Gary Jeurink <[email protected]>wrote:
> Yes, that sounds like a winner idea. I can't tell a Boolean from a
> stat when their all numbers. I do all the number crunching in fox pro
> (win/loss, home/visitor, conference) and then rank the teams by
> category for power points. Then I upload the new game scores and stats
> to my site (mysql). It definitely picks a lot of the upsets. I will
> rewrite the logic in the off season.
> ---------
--
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN
901.246-0159 cell
--- StripMime Report -- processed MIME parts --- multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.