Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formula

Status
Not open for further replies.

coachvi

Technical User
Nov 19, 2008
111
GH
stringvar MyDate:=totext({APVEN.DATELASTPA},0,"yyyymmdd");
cdate(val(left(MyDate,4)),val(mid(MyDate,5,2)),1)

getting error a month must be between 1 and 12
 
You are going about this in a long way, provided {APVEN.DATELASTPA} is a date or datetime, you can use

Date(year({APVEN.DATELASTPA}), month({APVEN.DATELASTPA}), 1)

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top