Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gomonth() giving bad date
Message
From
06/06/2006 14:37:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Gomonth() giving bad date
Miscellaneous
Thread ID:
01127446
Message ID:
01127446
Views:
52
Hi All,

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?

TIA
Beth
Next
Reply
Map
View

Click here to load this message in the networking platform