Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi Team,
Need your help in getting the Last Week Start Date Time and Last Week End Date Time using date functions in services in TW’s ?
(Current Week-1)
Regards,
Pavan Raj T.S
Hi Pavan,
JavaScript has a Date object which has a number of methods you can use to determine the current day, week, year, etc. For example, getDay() will return a numeric value for the day of the week (e.g. Sunday is 0).
You can reference http://www.w3schools.com/jsref/jsref_obj_date.asp for more information about the methods available to you.
Regards,
Adam