good afternoon,
I have a picklist with option 00.01 and 02.
I get via javascript to separate the three in three variables.
But I need each of these values in date ie 00, 01 and 02 to merge with the month and year to be set in a Date field,
Someone would know me.
Thank you
*This post is locked for comments
Thanks for the answer,
I need before generating the date, transforms these 3 fields into 3 fields of dates, so only concatenate it in month and year, understand?
Thanks for replying ... That's right ... I need to get these 3 values that are texts and convert them into days so I can based on the current date, format a date
Tank You
something like this :
var day= Xrm.Page.getAttribute("new_day").getText();
var month = Xrm.Page.getAttribute("new_month").getText();
var year = Xrm.Page.getAttribute("new_year").getText();
var dt = new Date(year+"-"+month+"-"+year + "Z");
Thanks,
PS
The optionset has only three options 00, 01, 02.
Do you want to use these numbers as days, so that we can add to a date field?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156