cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Last Week Start and End Date Time

ptc-6292037
1-Visitor

Last Week Start and End Date Time

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

1 REPLY 1

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



Announcements


Top Tags