Getting the name of the day of week, like Monday, etc
I have a query that has dates down the rows. Next to this date we want the the actually name of the day like Monday. My thoughts were to create this in an update rule but i was asked to do it via a custmer exit in the query. i am not sure it will work there? will it return for each row with a date if I put the varialbe in the row?
I think i misunderstood you.
I believe you will need a virtual characteristic for accomplishing this.
If you are new to this topic there is a good how to that can help.
The basic idea should be that you'll populate the virtual char on the fly.
The backdrwas are: performance, you will need to have "date" in the drill down, some extra development work etc'.
I believe that the way to go is with update rules.
Regards,
Gili
Similar Messages
-
How do I get the day of week labels back in ICal 5.0.1?
In "Week" view the day of the week is no longer displaying under the date. I can't find a preference setting to get it to display. Any ideas? Thanks.
If the issue is limited to your user account try starting up in Safe Mode (It will take more time to startup because it runs a directory check.)
If your apps functions correctly that way, go to System Preferences >> Accounts >> Login Items and remove them. Boot normally and test. If not go to/Users/yourname/Library/Contextual Menu Items and move whatever is there to the desktop. Then do the same with /Library/Contextual Menu Items. Lastly, try moving/Users/yourname/Library/Fonts to your desktop.
* Go to your Finder "Go" menu hold the option key to choose "Library"
Log out/in or restart, if that sorts it start putting items back one at a time until you find the culprit. -
How to pass from method to arguments to main and get the day of the week
Hi
Need some help, this code below doesnt fit the requirement.
For this program, i need to: take in day, month,year of a date as int argument, return the day of the week for the date entered in App()
In Main: call the App() to get the day of the week to display when user enter the date in dd/mm/yyyy
StringTokenizer is required for this program.
- How can the arguments pass back to main by returning of month & day of the week?
- Program cant take in int and return as string
- Date cant display day of the week
Code
import java.util.*;
public class App2 {
private int day;
private int month;
private int year;
private int inputDay;
private int inputMonth;
private int inputYear;
public static String App2(String day2, String month2, String year2) { // this is wrong should pass int in
String date = day2 + month2 + year2;
DateFormat df = new SimpleDateFormat("dd/MM/yyyy");
try
Date today = df.parse(date);
System.out.println("Today = " + df.format(today));
catch(ParseException e)
if(month2.equals("01") || month2.equals("1")){month2 = "January";}
else if(month2.equals("02") || month2.equals("2")){month2 = "February";}
else if(month2.equals("03") || month2.equals("3")){month2 = "March";}
else if(month2.equals("04") || month2.equals("4")){month2 = "April";}
else if(month2.equals("05") || month2.equals("5")){month2 = "May";}
else if(month2.equals("06") || month2.equals("6")){month2 = "June";}
else if(month2.equals("07") || month2.equals("7")){month2 = "July";}
else if(month2.equals("08") || month2.equals("8")){month2 = "August";}
else if(month2.equals("09") || month2.equals("9")){month2 = "September";}
else if(month2.equals("10")){month2 = "October";}
else if(month2.equals("11")){month2 = "November";}
else if(month2.equals("12")){month2 = "December";}
return month2;
public static void main (String [ ] args){
Scanner sc = new Scanner(System.in);
System.out.print("Enter the date in dd/mm/yyyy: ");
String date = sc.nextLine();
StringTokenizer st = new StringTokenizer(date, "/");
String day = st.nextToken();
String month = st.nextToken();
String year = st.nextToken();
App2(day, month, year);
String test = App2(day, month, year);
System.out.print(test);
}Program output: 29 Aug 2010 is a SundayNote: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.
-
I think it is kind of odd that the "day" property in the Date
class will only return the day of the week and not the day of the
month... How would you go about getting the day of the month
selected lets just from a DateField entry... so lets just say some
one does something like this
var date:Date = DateFieldEntry.selectedDate;
trace(date.day.toString());
It give me back the day of that particular week in the
month... but I really don't have any use for that... I need the day
of the month! How would I go about getting that?yeah... I know the "date" property returns a numeric value of
the current month, day and year... but I was hoping there was a
property of some sort that I could just use instead of having to
parse the numeric value returned for what I want.. -
How to get the day as numeric value without formatting the date?
Hello,
to reduce the costs of a sql-statement I need to get the day of a date-value as number (to compare it to a numeric value) without any formatting. Every formatting results in a full table scan of the table with the date field. Is there any function to solve this problem?
Oracle version is 11g.
Thanks CarstenCarstenDD wrote:
select T1.SYSID from T2,T1
where T2.SysT1 = T1.SYSID
and T2.Date1 < '01.03.2011' --German date format
and to_number(to_char(T2.Date2,'DD')) = 1
and T2.Inactive = 0
The explain plan shows a full table scan on T2. With EXTRACT(DAY FROM T2.Date2) there is no difference.It probably would and should in any case.
Look at your predicates, which of them would reduce the resultset to a fair size compared to the total number of records in the table?.
- You may have a huge number of records when you say date less than
- Of these perhaps one seventh have day = 1
- My guess is that most have Inactive = 0
Besides, you should not rely on implictit char to date conversion, always use TO_DATE
How many records are in the table? - How many will that query return?
Regards
Peter -
How to get the day value from the current time?
Hi,
I like to write a program that prints out the current time in the formate as "Thu May 3 07:57:02 PDT 2002". Then I want to get the day, time, year and month value out and do some manipulation.
I know to format the current time, I can use
SimpleDateFormat formatter
= new SimpleDateFormat ("EEE MM.dd hh:mm:ss z yyyy");
Date currentTime_1 = new Date();
Now how do I get the day, time, year and month value? All the getday(), gettime()..,method have been deprecated. Can anyone provide the answer?
Thanks.Try using Calendar.get(int) and take a look at the constants used to specify the field you are trying to access.
-
Getting the day of lst of the month
Hi, how to get the day (sun, mon,......) of every lst of every month. I can get the current day using calendar.get(Calendar.DAY_OF_WEEK). This will return an int indicating the day.
If today is wed(5th Feb 2003), it will return int 4.
How do I get the day for the lst of every month?
ThanksYou can give this a try:
Calendar cal = new GregorianCalendar(); // Get today's date, or pass in your own date
cal.set(Calendar.DATE, 1); // Set the date to the 1st of the month
dayOfWeek = cal.get(Calendar.DAY_OF_WEEK); // Get the day -
R/3 job and get the details of variants like (from and to)
Hi,
How to find R/3 job and get the details of variants like (from and to) for that job.
the job is extraction job and running for 4 hours in R/3 once atfer this job completes BW job will start executing. Now i have to analyse R/3 job that how many years of data it is extracting (from, to) and other useful information why it is taking time for 4 hours.
Please let me know what transaction i have to use and how to check this information in R/3 side.
Thanks,Hi........
Go to SM37 >> select the job >> Click on Job log.........Check there whether u r getting any Clue or not...........Is this load is through PSA..........? if so check the records of the First data packet...........then the Last data packet............from there u can get some idea..................
Also u can check the data in the Extractor.......is it a full load?.............Go to RSA3 >> Execute..........there check the data........
Is it a LO datasource ? if so................Go to LBWE >> Click on maintenance link for your datasource........>> Here in the Right pane u can see the Structute associated with that Datasource ...........If u remove MC from those structure name............u will get the table name..............In those tables also u can check the data...............there should be some data field.............from where u can get some idea.........
If ur Extractor is extracting data using some Function Module.............then open the datasource using RSA2.............there double click on the Exrtractor..............u will get the function module.................u can try to analyze the function module............
For Variants..................select the job >> click on Step in the top >> then Go to in the top >> Variant..............but I don't think this will help u............this will tell u that this Extraction job is part of which chain or IP......
Regards,
Debjani.......... -
How do you get the calendar to start on Monday?
How do you get the calendar to start on Monday rather than the default Sunday ?
Read through this discussion:
https://discussions.apple.com/message/19866624#19866624 -
hello, all of a sudden without apparent reason I can't get "MAIL" to function. It starts up but I get the color wheel turning like crazy and never ends. I've tried restarting and I still can't get it to work. PLEASE HEEELP!?
In the Desktop Manager > Sync > Configuration, make sure the calendar options are set to override Outlook.
Set it also to notify you of the changes, so you will have to approve any changes.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How can I get the day of the week to display in ical5?
I can only see the date, e.g. 20, 21, 22 but not the day of the week, e.g. 20 Wednesday, 21 Thursday. How do change this view? Thank you
You need to create a stringwriter, wrap it in a printwriter, then print to the printwriter, then convert the stringwriter to a string.
Here's an example:
StringWriter sw = new java.io.StringWriter();
PrintWriter pw = new java.io.PrintWriter(sw);
e.printStackTrace(pw);
String strError = sw.toString();
I hope this works. I didn't test the above code. I don't think I'm leaving anything out, but it's been a while since I've done it. Either way, it should get you on the right track to get what you need.
Hope that helps.
Michael -
How to get the day of 52 weeks ago data
hi all:
i recently encounter the difficulty that using the current data to get the 52 weeks ago data in essbase.the fct table is like this:
current_dt the_day_of_week sales
20110203 5dw05 100
20100207 5dw05 30
note: "5dw05" means the fifth day of five week in the selected year
the question is which essbase formula to choise or how to use them in essbase outline structure can meet the bussines role that when the biz men chlic on the member "20110203" of time dimension, the extension mesure "bf_sales" value is 30.
the outline i am about to design under the bellow:
dim_time
201002
20110201(alias 4dw05)
20110202(alias 5dw05)
20110203(alias 6dw05)
201102
20110206(alias 4dw05)
20110207(alias 5dw05)
dim_measure
sales
bf_sales(will use the essbase formula,but do not know which function to choise or how to use it)
i am lovely hope one of you may give me suggestion on this issue. thanks a lot for all of you!If you put the Apple calendar app on the first screen, it shows the day and date (no month/year). E.g Sunday 20.
-
HT4623 How do I get the calendar to show the whole month and not just the day or week.
How do I get the calendar on my updated i phone 7 to show the whole month and not just the week or the day?
Touch the arrow (or word) at upper left (e.g. September).
-
Getting the day of the week from a given date help plz
private String getWeekDay( ) - return the correct week day given the day, month and year for this date.
I had given this an effort and got stumped, my inital thought was to use mods but any input would be helpfultry
int dow = Calendar.getInstance().get(Calendar.DAY_OF_WEEK); -
Get The Previous Six Weeks in Query
I have an MDX query that I'm using in an SSRS report. The report returns results for the current week beginning on Sunday. THe query takes three parameters: Year, Month, and Week. The year is defaulted to the curret year, the month is defaulted to the current
month, and the week is defaulted to the current week. Here is the MDX of the query:
SELECT
NON EMPTY
{[Measures].[Employee Hours]} ON COLUMNS
,NON EMPTY
[Employee].[Employee Discipline].[Employee Discipline].ALLMEMBERS*
[Employee].[Employee Department].[Employee Department].ALLMEMBERS*
[Employee].[Employee Full Name].[Employee Full Name].ALLMEMBERS*
[Employee Hours Time Category].[Utilization Category].[Utilization Category].ALLMEMBERS*
[Employee Hours Time Category].[Time Category].[Time Category].ALLMEMBERS*
[Project].[Client].[Client].ALLMEMBERS*
[Time].[Year].[Year].ALLMEMBERS*
[Time].[Month].[Month].ALLMEMBERS*
[Time].[Week].[Week].ALLMEMBERS
DIMENSION PROPERTIES
MEMBER_CAPTION
,MEMBER_UNIQUE_NAME
ON ROWS
FROM
SELECT
StrToSet
(@TimeWeek
,CONSTRAINED
) ON COLUMNS
FROM
SELECT
StrToSet
(@TimeMonth
,CONSTRAINED
) ON COLUMNS
FROM
SELECT
StrToSet
(@TimeYear
,CONSTRAINED
) ON COLUMNS
FROM
SELECT
StrToSet
(@EmployeeEmployeeDepartment
,CONSTRAINED
) ON COLUMNS
FROM
SELECT
StrToSet
(@EmployeeEmployeeDiscipline
,CONSTRAINED
) ON COLUMNS
FROM [OLSON BI]
CELL PROPERTIES
VALUE
,BACK_COLOR
,FORE_COLOR
,FORMATTED_VALUE
,FORMAT_STRING
,FONT_NAME
,FONT_SIZE
,FONT_FLAGS;
What I would like to do is return not just the current week, but also the previous five weeks.
IF there is an easier way to do this without having to pass the current year and the current month, that would be een better. I do have a time dimension called time which does have the [Time].[Week] member which is in the format of MM/DD/YYYY 00:00:00:00.
Any help would be greatly appreciated!
Thanks!!
A. M. RobinsonYour solution requires me to figure out what the week was six weeks ago. How is that accomplished? That is what the MDX is supposed to do. Take the current week (i.e., 8/31/2014) and go back six weeks.
In MDX you can do this for years, month, days, etc. It's fairly easy to say "give me the three previous years from the current year". I want the same thing for weeks.
I'm passing in a simple parameter for week: 8/31/2014 00:00:00. This is how it is formatted in the actual dimension table.
From what I've found, LastPeriods seems like the way to go...just trying to figure it out to work with my MDX. Take the current period and go back X number of periods.
SELECT LastPeriods(3,[Date].[Fiscal].[Fiscal Quarter].[Q4 FY 2002]) ON 0
FROM [Adventure Works]
A. M. Robinson
Maybe you are looking for
-
Zbot and other issues after sophos scan
bot-gal.ide zbot-gap.ide zbot-gay.ide zbot-gbf.ide zbot-gbi.ide zbot-gbj.ide zbot-gbm.ide zbot-gbn.ide zbot-gbq.ide zbot-gby.ide zbot-gcb.ide zbot-gch.ide zbot-gcl.ide zbot-gcm.ide zegos-cc.ide zeleff-a.ide Scan name: "Scan Local Drives" Sca
-
Can access photos but not music/videos on AppleTV
I've set up many for home sharing and Apple TV...but I've never run into this one before. AppleTV 3, HP PC with iTunes (no firewall on). When we turn on home sharing the AppleTV sees the photos but only sees 3 albums. Those albums aren't in the iTun
-
Error when processing asset under construction (AuC) for WBS element message no cj824
Hi, i am getting error message when i change dates in activities. Error when processing asset under construction (AuC) for WBS element Message no. CJ 824 i have checked related post but did not find any solution. also check SAP Note but not related t
-
earlier today burned some pics onto a cd while ipod was connected to ibook via dock. ipod started displaying a spinning disk symbol on its screen, and now appears that all music on it has been wiped. when I put it in the dock, spinning disk symbol re
-
Where is the profile pic stored on 10.8.5?
Hi there. I am currently writing some code to cycle through profile pictures for my account, but I can't find the location of the profile picture on my Mac. Any help? Solved! Go to Solution.