Search This Blog

Sunday, August 6, 2017

Created Dateand Modified Date Using JSOM

                console.log(currentItem.get_item("Last_x0020_Modified").split('T')[0]);
               console.log(currentItem.get_item("Created_x0020_Date").split('T')[0]);
               console.log(currentItem.get_item("Last_x0020_Modified").split('T')[1].split('Z')[0]);
               console.log(currentItem.get_item("Created_x0020_Date").split('T')[1].split('Z')[0]);

No comments:

Post a Comment