north_star 16 Posted January 13, 2013 Report Share Posted January 13, 2013 I wonder if there is fellow UBOTers that could help me to inc the date by day inc. here is my not working code ui stat monitor("Date : ", #Date)loop(100) { set(#Date, $substring($date, 0, 10), "Global") wait(3)} thank you all Quote Link to post Share on other sites
VaultBoss 310 Posted January 13, 2013 Report Share Posted January 13, 2013 $date is a UB internal function. You can't manipulate that - it only gives you the current date, no many how many loops-around it you give it... If you want to have a number/string looking-like a date, you can construct it yourself. Quote Link to post Share on other sites
north_star 16 Posted January 13, 2013 Author Report Share Posted January 13, 2013 (edited) Do you have any suggestion to solve this ..? I wish UBOT have a calendar Built in node Edited January 13, 2013 by north_star Quote Link to post Share on other sites
malefic 48 Posted January 13, 2013 Report Share Posted January 13, 2013 If I do anything with dates, I normally do a call to a PHP script I have hosted on my VPS and then scrape the page returned. Quote Link to post Share on other sites
POS 2 Posted January 16, 2013 Report Share Posted January 16, 2013 What if you get this php script ( http://stackoverflow.com/questions/8307963/increase-current-date-by-5-days ), Use get() to get a url you pass in the URL to the script (can be a number, as in how many days you want to increase current date with) - and the scrape the date from there into a new varible. The only bad about that is that you rely on a php script on an online server... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.