Format x axis into days of the week

Hi, i hope someone can help me with this!
I wish to change the x axis to days e.g. Monday Tuesday.. however I do not know how to go about doing it.
After every 10th point in the array, i wish to put "Monday" on the x-axis and after next 10 points"Tuesday"
anyone can help me with this.
thanks alot in advance!=)
Attachments:
Graph X-axis.vi ‏18 KB

Hi thank you for your suggestion! However as I am not using timing data as part of the graph, I do not need to use timestamp. In fact, I am using extracted data from a database and plot wavefrm to it. I have attached a VI to better show my problem. I have been searching forum and testing out for very long but still couldnt find the solution to it. Do help me out with this!! Thanks alot in advance!
Attachments:
Array and plotting.vi ‏48 KB
searchdb_DDMMYY(SubVI).vi ‏16 KB
DDMMYYY(SubVI).vi ‏18 KB

Similar Messages

  • Day of the week incorrect in date/time formatting

    This should be a simple fix but I can't seem to find the solution.
    I'm wanting to format my dates using the cell formatting options in the Cells Inspector. Everything is fine except that it's showing the wrong day of the week.
    For example, today is Friday, July 15th, 2011. When I enter 2011-07-15 into the cell, it formats it as Wednesday, July 15, 2011. My time, date and location settings are correct in System Prefs.
    Anyone know where I can fix this? Thanks

    Never mind, I figured it out. I really wish you could delete discussions.

  • United Kingdom Regional Format sets Monday as the first day of the week.

    With the Region Settings (Settings -> General -> International -> Region Format) set to United Kingdom, Calendar displays Monday as the first day of the week. I have seen other posts whereby it was suggested to change to US Internationalization but this will also change the date and telephone number formats to US settings, far more frustrating.
    Have I been sheltered from properly formatted calendars all my life or is this a mistake and it should start the week on Sunday. It is consistent in both the Week and Month view.
    Am I crazy or does anyone else agree with is?

    Same here. One of the first things I do in this sort of application is switch week start to Mondays.
    Terry, East Grinstead, UK
    Message was edited by: Terry P

  • Day of the week?

    Is there a way to check if the entered date is a certain day of the week?
    I just would like to alert the user if the date that was entered, which i have format "m/d/yy" on the format properties, that the date they entered is not a Sunday date. I tried to use the util.scand function but then was unable to figure out how to script it to look for the value to be Sunday.
    I tried to put the following in the validation script:
    var EFDT = event.value;
    var day = util.scand("dddd", EFDT);
    if(day.value!="Sunday")
    {app.alert("Most changes should be effective on a Sunday, please check that the entered date is the correct date that the change should take place.")}
    console.println(day.value)
    the only time I get the alert is when I reset the form...
    in the debugger i get:
    day is null
    4:Field:ValidateException in line 4 of function top_level, script Field:Validate
    TypeError: day is null
    4:Field:Validate
    i am sure this means that my if criteria is not correct syntax, but i have run into a dead end when trying to search for more help.
    Thanks in advance for any help you can provide...

    The custom validate script for the data field could be something like:
    (function () {
        // Do nothing if field is blank
        if (!event.value) return;
        // Get the entered date, as a date object
        var ed = util.scand("m/d/yy", event.value);
        // If the date is not a Sunday...
        if (ed.getDay() !== 0) {
            // Alert user
            app.alert("Your message goes here.", 3);
            // Optionally, reject the entry
            event.rc = false;
    Edit: corrected code

  • Figure out dates corresponding to days of the week, constructing a schedule

    Hi everyone,
    I'm sorry if this topic has already been covered. I've searched the forums for an answer, but did not see anything I took to be an answer (I'm not very good at this).
    I'm trying to make a simple table to tell me which dates a particular day of the week falls on. For instance, I'm making a syllabus for a class that meets every Tuesday and Thursday. I want to know which dates corresponds to every Tuesday and Thursday from here on out.
    I currently have a table with two columns. The first column is the day of the week. The first row is Tuesday, the second is Thursday, the third Tuesday, etc. I was able to do this easily with auto fill. I want the next column to be the date.
    Here's a picture of what I mean:
    Is there a formula that will let me do this?
    Thanks!

    Hi Macademic,
    How about putting both into the first column?
    Select all of column A and use the Cell Format inspector to set the format as Date and Time, with the Date: and Time: pop-up menus set to:
    Date: Mon, Jan 5, 2009
        or: Monday, January 5, 2009
        or  to a Custom format, Date and Time, including only the elements you want in the format you want them.
    Time: None
    Enter the starting date into A2, and confirm that it is either a Tuesday or a Thursday.
    In A3, enter
    =A2+2 (if the course starts on a Tuesday)
    or
    =A2+5 (if the course starts on a Thursday)
    In A4, enter
    =A2+7
    Select A3 and A4, then grab the control (small circle at the lower right corner of the selection) and drag down until you reach the last date of the course.
    Regards,
    Barry

  • Months/ days of the week not in English?

    Hi,
    When connecting my iPhone with iTunes for the first time, it seems that it picked up the location from my computer’s regional and languages, and as a result the menus on my calendar and weather applications, as well as the time on the home screen (month, day) - are in different language. Everything related to days of the week and months – not in English.
    I’ve changed the main setting from the control panel, installed the iTunes again, but I can’t find how I could change it for the iPhone. (The location within the iTunes store is correct.)
    Any suggestions?

    Thanks Phil,
    I don’t know how it got messed up… Seems ok now, but this is how it looked like:
    Language – English
    Voice control – Английски
    Keyboards 1 – Bulgaria ON
    Region Format – Bulgarian

  • Issue with Gregorian Calendar and setting Day of the week

    Hi
    This may have a simple solution, but its currently got me stumped. Basically, after some calculation I determine the date that a particular event should occur on. These events are listed in a JTable where the column headers are the dates of the beginning of the weeks. In order to place my calculated event in the correct column I create a Gregorian Calendar, set it to the date of the event and then set the day of the week to the beginning of the week. Normally this works fine but for a few instances, rather than getting the date at the beginning of the week, I get the date thats the beginning of the next week.
    As a quick example, to kind of illustrate my problem:
    I determine that the date of the event is 27/06/2006 which is a Tuesday.
    I want this event to appear in the column headed 25/06/2006, the date of the beginning of the week.
    In fact it appears in the column headed the 02/07/2006 which is the beginning date of the following week.
    Is there anyway to get it so when I set the day to the first day of the week it goes to the beginning of the current week rather than the beginning of the next week?
    Any suggestions would be gratefully recieved as I'm currently struggling to think of any.
    Thanks

    Hi, I dont say Monday is the begining of the week. At least I dont think I do.
    As for code I'll post the conversion bit which is:
    for (int i = 0; i < areaNameSelectionTable.getRowCount(); i++) {
    GregorianCalendar conversionCalendar = new GregorianCalendar();
    conversionCalendar.setTime((java.util.Date) prioritiesTable.getValueAt(i, 10));
    conversionCalendar.set(GregorianCalendar.DAY_OF_WEEK, GregorianCalendar.SUNDAY);
    }//end for loopI then create a string from the GregorianCalendar in the format DD/MM/YYYY and compare that with the headers of my table columns (Also dates in the format DD/MM/YYYY) When they match thats the column this particular event should appear in. I can post this code if necessary, but I dont know if its relevant.
    Thanks

  • Report Request - Tickets by day of the week

    So there are plenty of reports that show data based on past X days, but as far as I can see, none break it up into by days of the week.
    Example, For the last month, how many tickets were closed on Monday, Tuesday, by what Tech, in which Category/Location/Custom attribute.
    Could someone better than I make this happen?
    This topic first appeared in the Spiceworks Community

    I am not sure about your help.  Text variable is part of the header of a column and how is it possible to use the text variable as part of the result area.  I want the day to be part of the line item in the report.
    Appreciate if any one can provide their thoughts and input.
    Regards
    Sundar

  • Oracle returning incorrect day of the week

    Hi there,
    I have a table named Performance, which includes a date field named PDATE, some other attributes such as title, etc, and a field named WEEKDAY, which includes the numerical value for the day of the week. Here is an example:
    PER#
    P#
    THEATRE#
    WEEKDAY
    PDATE
    PHOUR
    PMINUTE
    COMMENTS
    1
    1
    1
    1
    02-MAR-10
    19
    30
    Normal evening time
    2
    1
    1
    2
    03-MAR-10
    19
    30
    Normal evening time
    58
    6
    6
    3
    04-MAR-10
    19
    30
    Normal evening time
    5
    1
    1
    4
    05-MAR-10
    19
    30
    Normal evening time
    I went to verify the day of the week in a calendar (in fact I checked more than one) and I noticed that the Weekday value seems incorrect. For instance, the 2nd of March was a Tuesday so I would expect WEEKDAY to say 3 (considering Sunday to be the 1st day of the week, which is the universal norm), or perhaps 2 (considering Monday to be the 1st day of the week).
    First thing that came to mind is, since the WEEKDAY is a number field which has been pre-populated, the person who populated it made a mistake.
    So I went to verify this by running a query that would give me the correct day of the week by extracting it from the PDATE field:
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,
    to_char(to_date(pdate,'DD/MM/YYYY'),'DY') weekdaycalc, weekday
    FROM ops$yyang00.Performance
    ORDER BY pdate
    And to my astonishment, I got the following table as a return:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    SUN
    1
    03-MAR-10
    2010
    MON
    2
    04-MAR-10
    2010
    TUE
    3
    05-MAR-10
    2010
    WED
    4
    06-MAR-10
    2010
    THU
    5
    07-MAR-10
    2010
    FRI
    6
    08-MAR-10
    2010
    SAT
    7
    09-MAR-10
    2010
    SUN
    1
    10-MAR-10
    2010
    MON
    2
    As you can see, all of the above WEEKDAYCALC values are incorrect, and seem to match the incorrect values in WEEKDAY.
    I could perhaps understand some weird WEEKDAY numbering if there is some general database setting where I could specify any day of the week to be the first day. However, I can't think of any logical explanation on why Oracle would call a Tuesday Sunday.
    Could someone please advise what I mght be doing wrong? This is driving me insane!
    Thank you in advance for all the help and support.
    Regards,
    P.

    Hi,
    1bded5c7-e555-4306-ac86-45da83dff439 wrote:
    Thanks both Frank and Solomon for the help. I am quite new to Oracle and I feel you folks went the extra mile on the explanation
    Based on your explanations, I changed the formula so the date format would be processed as YY rather than YYY.
    SELECT DISTINCT pdate, EXTRACT(year from pdate) year,   
    to_char(to_date(pdate,'DD/MM/YY'),'DY') weekdaycalc, weekday   
    FROM Performance   
    ORDER BY pdate  
    And I got the correct values now:
    PDATE
    YEAR
    WEEKDAYCALC
    WEEKDAY
    02-MAR-10
    2010
    TUE
    1
    03-MAR-10
    2010
    WED
    2
    04-MAR-10
    2010
    THU
    3
    05-MAR-10
    2010
    FRI
    4
    06-MAR-10
    2010
    SAT
    5
    07-MAR-10
    2010
    SUN
    6
    08-MAR-10
    2010
    MON
    7
    The interesting bit here, is the original WEEKDAY field, which clearly has been created with the same mistake I did (this whole table wasn't created by me). I reckon I spotted a design bug.
    Regards,
    P.
    No; you're still calling TO_DATE on something that is already a DATE, and you're still using an implicit conversion (only now you're using a format such that the current NLS settings don't cause you to get punished.  If your DBA changes the NLS settings next week, then you will have similar errors again.)
    If you want to see what day of the week pdate is, then use:
    TO_CHAR (pdate, 'DY')
    or, to make it NLS-independent:
    TO_CHAR (pdate, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH')
    This is simpler than what you posted, it's more efficient and easier to debug and to maintain, and it also gets the results you want in all cases.
    One more time: TO_DATE, as the name hints, converts something (a VARCHAR2, to be precise) TO a DATE.  If pdate is already a DATE, then what do you need to convert?  You're implicitly converting a DATE to a VARCHAR2, then explicitly converting that VARCHAR2 back to a DATE, and then calling TO_CHAR.  That's 3 function calls (1 of them error prone) where only 1 is needed.
    Also if you ever have to reconcile 2-digit years with 4-digit years (and, again, in this problem you don't) the correct way is to convert the 2-digit year to a 4-digit year, not vice-versa.
    Calling Tuesday the 1st day of the week could make sense in a particular application.

  • Cannot turn on "Show the day of the week" option in Date & Time

    OS X Lion turns "Show the day of the week" option off each time I open that preference pane and after every reboot. My region in Formats tab of Language & Text preference pane is set to "Russia (Russian)". I've noticed that the problem doesn't appear when region is set to US (I didn't try others). Is there any known workaround, except changing my region preference?

    Me too.
    And I have a workaround, until Фззду fixes it finally:
    1) Go to the ~/Library/Preferences, locate a file named com.apple.menuextra.clock.plist, open it with Plist editor (comes with XCode) or just with TextEdit.
    2) There's DateFormat key in it, change it to "EEE H:mm", save the file.
    3) Now Cmd-I (right click - Get info) on that file in Finder, and check option named "Locked" ("Защита").
    System Preferences' Date & Time pane sets the aforementioned DateFormat to "ccc H:mm" when you tick the "Show the day of the week" option, while in Russian locale. And in English it becomes "EEE H:mm". The problem is that Sys.pref and even SystemUIServer (that shows the menu) processes somehow do not like the former value and erase it. After every relaunch of SystemUIServer (after reboot or being killed) tries to change "EEE" to "ccc" again (which would be cleared to nothing next time), that is why you have to lock the plist file.

  • Can I change the first day of the week on my ipod touch

    I have a new Ipod touch, which i recently upgraded to OS 3.0. I was wondering if it is possible to set the first day of the week in Ical to Sunday instead of Saturday?
    Thanks

    The International Region Format controls the start day of your calendar display. UK region format sets the display to start on Monday. US region format will start the calendar on Sunday. However, that setting also controls your date, time and phone number formats, so using it would only cause you more problems.
    Tell Apple you want the option to set the calendar week start independent of the international region format using the feedback page. http://www.apple.com/feedback/ipodtouch.html

  • From where to get "First day of the week" data for all the locales, is it present in CLDR spec 24?

    I am trying to get "First day of the week" data from CLDR spec24 but cannot find where to look for it in the spec. I need this data to calculate numeric value of "LOCAL day of the week".
    This data to implement "c" and "cc" day formats that equals numeric local day of the week.
    e.g if "First day of the week" data for a locale is 2 (Monday) , it means numeric value for local day of the week will be 1 if it is Monday that day, 2 if it is Tuesday that day and likewise.

    Hi
    If you want to week to be started with Sunday then use the following formula:
    TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}') if it's retail week(starts from Monday) then the follow below:
    TimestampAdd(SQL_TSI_DAY, 1-DAYOFWEEK(Date'@{var_Date}'), Date'@{var_Date}')
    I'm assuming var_Date is the presentation variable for prompt...
    Edited by: Kishore Guggilla on Jan 3, 2011 4:48 PM

  • Calender: first day of the week problem

    on my macbook i have monday as the first day of the week in month view. on the ipad (and iphone) sunday is shown as the first day, which is a real pain for someone who has more of a visual recollection of the week than a list of dates. can i change this behaviour anywhere?
    thanks.

    many thanks for that, problem solved.
    well sort of. now i'm in new zealand with a uk formatted ipad, which will doubtless cause a ripple of problems in other apps. we will see.
    maybe the guys at apple would like to look at allowing the user to override the global settings in each app. this is important for people who work internationally. i wonder where the feedback pages are.
    thanks.

  • First day of the week in calendar

    In the UK (as in many countries) the week starts on Sunday and calendars normally reflect this. With iPhone the week starts on Monday (in UK) but in Ireland it starts on Sunday. I really can't use a calendar showing Monday as the first day of the week (it's too confusing when compared to printed calendars and iCal on the computer). If I set iPhone calendar to Ireland that's fine for a while but soon it reverts to UK and Monday. Is it possible to make this calendar show the correct day all the time?

    Yes, it's possible, by changing Settings > General > International > Region Format to something other than the UK. Setting it to the United States will give you a week starting on Sunday. But, that setting also controls the way dates and phone numbers are displayed, so those are affected as well. But, maybe that's already how you already "set iPhone calendar to Ireland," in which case, I'm not sure why it's reverting back, unless it's resulting from when you sync the phone to your computer.

  • First day of the week changing wp8.1

    In WP8.1 is there a way, other than changing the country setting, of changing the first day of the week?  If that is the only way is there a list of which countries start on which particular day and have which particular number format?  

    Thank you again for you help Mathias, unfortunately that doesn't have which day of the week is first. 
    I will try answers.microsoft.com although I believe a bug tracker would allow me to flag the problem and then it would be fixed for everyone, not just me solving it through trailing every countries date format.

Maybe you are looking for

  • Time Machine Migration Question

    I am in the process of moving my Time Machine from a USB attached drive to a NAS.  I am looking to do the initial backup on the NAS and was presented with the option of replacing the USB drive with the NAS or alternating between the two.  My USB driv

  • Car cd player repair

    this is gonna sound like a dumb question. just wondering what the average cost of fixing a car cd player would be. also if its even possible/worth it to fix it and what it would cost to just replace it. i know i havent given alot of details, just loo

  • Parsing PDF, iText

    Hi all, I just realized that u cant parse a pdf with iText. Like to insert a string of text at 'marker'. Anyone got a better tool or idea? Thanks...Peter

  • How do I unblock someone from my contacts that I deleted but put their number back in my contacts?

    I need help!

  • Gtk-window-decorator transparency / opacity

    hi there, since I replaced emerald with gtk-window-decorator, things work better now. But I have no clue, why I can't turn off the titlebar transparency for inactive windows. No transparency only works for focused windows, but not for unfocused. I al