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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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