Newbies alexcross2005 Posted October 15, 2010 Newbies Posted October 15, 2010 Hi... i want to create a script that copies a date field, adds one month and pastes it in the same field.... can anyone help me please!!!
Vaughan Posted October 15, 2010 Posted October 15, 2010 Assuming the date is in a field called "field" and it is valid: Date( Month( field ) + 1 ; Day( field ) ; Year( field ) ) This also assumes that you really mean that "add one month" means to move the date into the next month. SO this calculation will result in 31 January 2010 to change to 3 February 2010. This is because months are not a constant number of days. OTOH did you really mean to add 30 days, in which case the calc is field + 30 In a few moments Comment will post the links to previous discussions that illustrate the intricacies of working with dates. :)
Matthew F Posted October 15, 2010 Posted October 15, 2010 Not all months have the same number of days. How do you want to deal with January 30th, for example?
Recommended Posts
This topic is 5154 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now