Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
day of week
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Jeffin Joy
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
4988
People Online:
Visitors:
32
Members:
0
Total:
32
Online Now:
New Topics
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Chris Martin
825
Forums
Filtered Topics
Unanswered
Unresolved
Active Topics
Most Liked
Most Replies
Search Forums
Advanced Search
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
day of week
Please
login
to post a reply.
2 Replies
0
Subscribed to this topic
53 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
TommyT
Veteran Member
Posts: 58
3/17/2011 1:48 PM
Is there a way to get the day of the week from a date? I'm sure there is an easy javascript function to do it, but would I have to add it to some js lib so process flow would provide it?
Sam Simpson
Veteran Member
Posts: 239
3/17/2011 7:58 PM
Split
Open up pflow.js with notepad (this is located both in your client and server) and do the following:
1. You'll see bunch of lines with // ***function definition //. Insert the following as the last of the group:
//*****Function Definition -->getWeekDate(var1) //
2. insert the following at the very end :
/************************************************************
Function: getWeekDate
Purpose: returns the Day of the week
************************************************************/
function getWeekDate(jsDate1)
{
var WeekDays= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];
whatDay=jsDate1.getDay();
return whatDay=WeekDays[whatDay];
}
Note: in your process flow your variable will look like this:
string WeekName=getWeekDate()
Hope this help
M Graham
Veteran Member
Posts: 32
New Poster
Congrats on posting!
3/17/2011 10:11 PM
Split
Here is another way to get the day of the week in abbreviated mode (Mon,Tue,Wed,Thr...):
In your 'START' node, add the following variables:
1. TodayString (Type=String) = today()
2. DayOfWeek (Type = String) = substring(vTodayString, 0,4)
Please
login
to post a reply.