Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gomonth() giving bad date
Message
 
 
To
06/06/2006 14:37:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01127446
Message ID:
01127449
Views:
10
See correct expression bellow. The GOMONTH() will not return empty date in your/this case unless its argument is empty date.
replace datefrom WITH GOMONTH(loData.dLastBillDate+1, -1)
> I have a table that holds a date, I have to fill that date from a text file which I put into a variable before hitting this code.
>
>loData.dLastBillDate = ctod("04/30/2006")
>
>replace datefrom WITH GOMONTH(loData.dLastBillDate, -1) + 1
>
>this gives me a blank datefrom field, because GOMONTH() evaluates to {03/31/2006}, it should come up with {04/01/2006}.
>
>I need this to work in all cases, not just 11 out of 12. Can anyone help me?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform