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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Last Week Start and End Date Time

ptc-6292037
1-Newbie

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
adam11
5-Regular Member
(To:ptc-6292037)

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



Top Tags