kill3rbko 12 Posted February 4, 2019 Report Share Posted February 4, 2019 Hello, I would like to know how to substract days from a specific date. I saw this function that will add 7 days to my date set(#d1,$plugin function("File Management.dll", "$date add days", #datedujour, "7"),"Global") I would like to substract 7 days from a specific date, is it possible with ubot? If not, Is there any free plugin to do it. Thanks and Regards Quote Link to post Share on other sites
HelloInsomnia 1103 Posted February 4, 2019 Report Share Posted February 4, 2019 If you wanted to do it from today then: set(#dateAWeekAgo,$n ago($n seconds(7,"Days")),"Global")Otherwise, try the datettime manipulation plugin. Then convert your date to unix time, subtract 604800 from it (number of seconds in a week) then convert that from unix time to a date. 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.