Need Script to add days to date field but days are there in dropdown list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 09:21 AM
Hi Guys,
I Have one more requirement. Could you please help me on this,
i have one date field called invoice_date where i have one more field called day_s
where day_s has dropdown values like 10,15, 30 so on.
my result field = invoice_date + day_s
that is it has to add the days whatever there in the day_s field. and stored in my result field.
result field is a date field.
Is it possible? any idea?
Thanks in Advance,
Malaisamy Ji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2016 09:38 AM
You can't just add a date to days field with an operator like that. I believe this may work for you.
|
This way you'll convert your standard days value into ms first then add it to your Date/time value and get the answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2016 01:18 AM
Thank you so much david.....it works perfectly alright.... after changing this
answer = date.getDate();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2016 04:55 AM
Great!
Please remember to mark my answer correct/helpful or like if appropriate.