Crawford,
I don't know this is known bug or not but here is the fix for that.
You have to overload the of_IsValid() function in n_cst_datetime object as
follows :
//Overloaded Function
public function boolean of_isvalid (integer ai_year, integer ai_month,
integer ai_day);
integer li_year
integer li_month
integer li_day
// Check for nulls.
If IsNull(ai_year) or IsNull(ai_month) or IsNull(ai_day) Then
Return False
End If
// Check for invalid values.
If ai_year <= 0 or ai_month <= 0 or ai_day <= 0 Then
Return False
End If
//this line you have to add in this function
//rest is from pfc
IF Date(ai_year,ai_month,ai_day) = Date('01/01/1900') THEN Return False
// Passed all testing.
Return True
-------------------
Also you have to overload the function of_lastdayofmonth() in n_cst_datetime
object. Copy the script from function of_lastdayofmonth() in
pfc_n_cst_datetime obejct and modify the following line as below:
Old line :
//Check for a valid day (i.e., February 30th is never a valid date)
Do While Not of_IsValid(Date(li_year, li_month, li_day))
New Line:
//Check for a valid day (i.e., February 30th is never a valid date)
Do While Not of_IsValid(li_year, li_month, li_day)
I think this will help you. Also you have to overload following functions :
of_relativemonth()
of_realtiveyear().
And modify the line mentioned above for the of_lastdayofmonth() function.
Wish u good luck!
Lalit Amrute
>From: "Crawford, Robert" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: PFCSIG re: Known Bug in pfc_n_cst_datetime(OF_LastDayOFMonth())
>Date: Thu, 2 Sep 1999 10:08:13 -0500
>MIME-Version: 1.0
>From [EMAIL PROTECTED] Thu Sep 02 12:04:45 1999
>Received: from [198.3.220.11] by hotmail.com (2.1) with ESMTP id
>MHotMailB998154900E3D820F3A1C603DC0BA5F80; Thu Sep 02 12:04:45 1999
>Received: (from majordom@localhost) by mango.rssi.com (8.8.4/8.8.2) id
>LAA01761 for pfcsig-outgoing; Thu, 2 Sep 1999 11:26:52 -0400 (EDT)
>X-Authentication-Warning: mango.rssi.com: majordom set sender to
>[EMAIL PROTECTED] using -f
>Received: from blue_thunder.enpnet.com (mail.enpnet.com [204.2.68.66]) by
>mango.rssi.com (8.8.4/8.8.2) with ESMTP id LAA01757 for <[EMAIL PROTECTED]>;
>Thu, 2 Sep 1999 11:26:46 -0400 (EDT)
>Received: by BLUE_THUNDER with Internet Mail Service (5.5.2448.0)id
><Q6JXR3MQ>; Thu, 2 Sep 1999 10:08:58 -0500
>Message-ID: <21FA604BBFAED111BFE900805F6F504D5DA6A6@BLUE_THUNDER>
>X-Mailer: Internet Mail Service (5.5.2448.0)
>Sender: [EMAIL PROTECTED]
>Precedence: bulk
>
>PB/PFCers ... Has anyone come across the bug in object function of
>pfc_n_cst_datetime named of_lastdayofmonth(Today()) .... It returns an
>invalid date whenever the month has 30 days ....(like this one !!!) .... Is
>there a fix or should I make my own mods ???? Thanks .... RJC
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
>ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help
>pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]