Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax of Date Time Stamp
Message
 
 
To
08/04/2010 13:55:58
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01459379
Message ID:
01459382
Views:
45
>I am trying to fire SPT to change a date field in an iSeries(AS400) file but I get an error that the date time syntax is wrong.
>
>
>
>LOCAL p1
>p1 = "04/07/2009 06:38:18 PM"
>
>teststring = "Update" +;
>" webprddt7.drawmfai Set datstmp = '" + p1 + "' Where recseq = 81478"
>
>
Did you try using parameter approach?
LOCAL p1
p1 = datetime(2009,4,7,18,38,18) &&  "04/07/2009 06:38:18 PM"

teststring = "Update" +;
" webprddt7.drawmfai Set datstmp =?m.p1 Where recseq = 81478"
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform