MONTH and YEAR functions.  Help, please...

Can someone tell me why the YEAR and MONTH functions only accepts the format dd-MMM-yyyy (e.g. 1 January 2009)

The guest of the calendar will be return only the format dd/mm/yyyy (e.g. 01/01/2009). This makes it pretty useless calendar.

I really need help on this. Does anyone know how to get the value returned by the calendar in a command prompt in a format that can be used by the YEAR and MONTH functions?

Thanks in advance

Here's one without having to resort to assess:

day: substring (' @{Date1} {01/01/1900}' of (locate('/','@{Date1}{01/01/1900}',1) + 1) for (locate ('/ ',' @{Date1} {01/01/1900}', 4)-locate('/','@{Date1}{01/01/1900}',1)-1))
month: substring (' @{Date1} {01/01/1900}' of 1 for (locate ('/ ',' @{Date1} {01/01/1900}', 1)-1))
year: substring (' @{Date1} {01/01/1900}' of (locate ('/ ',' @{Date1} {01/01/1900}', 4) + 1) for 4)

in the format DD/MM/YYYY

See also:
http://obiee101.blogspot.com/2009/03/OBIEE-date-prompt-to-day-month-year.html

concerning

John
http://obiee101.blogspot.com/

Published by: John Minkjan, March 10, 2009 12:20 AM

Tags: Business Intelligence

Similar Questions

  • When I started to update my iphone to ios 10 and watch 3.0, cannot already display the pictures of my watch. Logo of loading only. And he thinks it will take a hayss of 1000 years. Help, please

    When I started to update my iphone to ios 10 and watch 3.0, cannot already display the pictures of my watch. Logo of loading only. And he thinks it will take a hayss of 1000 years. Help, please

    Hello

    If the software on your watch is being updated, leave your watch and your iPhone until the process is complete (including the not remove your watch on the charger):

    Update the software on your Apple Watch - Apple Support

  • Get the number of days in a month based on the month and year of fields

    I have a column in my form which lists the days in a month. I want to configure a hidden field that calculates the total number of days in a month, based on the month and year of the field inputs. The number of days will determine what appears on the column. For example, if I put 4 months, and 2016 in the field of the year, I get 30 in the hidden field. Thus, on the column 'Day', I'll have numbers 1-30. Or if I put 2 months and 2016 in the field of the year, I get the 29 in the hidden field. If the numbers 1-29 appears in the column 'day '.

    Found this on some forum javascript code:

    //Month is 1 based
    function daysInMonth(month,year) {
      
    return new Date(year, month, 0).getDate();
    }

    //July
    daysInMonth
    (7,2009); //31
    //February
    daysInMonth
    (2,2009); //28
    daysInMonth
    (2,2008); //29

    I do not know how to convert this code in JavaScript to adobe and don't really know how to use it. All I know how to do is to configure the field values for the field month and year as variables. I am a novice programmer and would appreciate it really all the help I can get. Thank you in advance!

    The code seems to be JavaScript and runs as needed by using the JavaScript console.

    I would like to consider making more general code, so if you have a date string that includes at least the month and year we could just call the function and get the number of days for that month.

    The following script will calculate the number of days in a month, by using at least the month and year values can display the result on the JavaScript console and all of the value field for the field that has this code as the custom calculation Script.

    function daysInMonth (oDate) {}
    return new Date (oDate.getFullYear (), oDate.getMonth () + 1, 0) .getDate ();
    }

    nMonth var = this.getField("Month").valueAsString; get the value of month;
    nYear var = this.getField("Year").valueAsString; get the value of the year;

    Event.Value = "";

    If (nMonth! = "" & nYear!) = "") {}
    var MyDate = util.scand ("' / mm/yyyy ', nMonth +" / "+ nYear); convert to date object;
    var nDaysInMonth = daysInMonth (MyDate); get the number of days;

    Console.Open (); Open the JavaScript console;

    Console.clear(); clear the console;

    Console.println ("Days in" + nMonth + ":" + nDaysInMonth); show days in month;

    Event.Value = nDaysInMonth; Set the value of the field;

    }

  • Get the number of days, months and year

    Hi all

    I'm using OBIEE 11 g. I have a line of dash for year (2010, 2011, etc.) and months (Jan, Feb,..., Dec). How can I get the number of days in a given month and year in my report?

    For example, if I choose to Jan & 2011, I'd get 31 and 356. And if I choose Feb & 2011, I would get 28 and 356.

    Thank you!

    I have something more good option here... Try to use this

    DAYOFMONTH (TIMESTAMPADD (SQL_TSI_DAY, DAYOFMONTH (CURRENT_DATE) *-1, TIMESTAMPADD (SQL_TSI_MONTH, 1, CURRENT_DATE)))

    This will give you the days for the month in progress (Oct 2011) after calculating the last day of each month... Similary dynamically pass the value Date or month... You will need to modify this function but shud be simple. Hope this helps :)

  • Set the calendar to display day, month and year

    In addition to the time of day, my computer began giving the day of the week (Monday) only instead of day, month and year as it did before. Tried to go back to 29/12/2014 or something similar without success.  Any suggestions?

    Hello

    Sorry for the late reply and I appreciate your patience.

    User profile corruption might have caused the problem. As a solution, I suggest to create a new user profile and check if the date format displays the same thing.

    To do this, see the link below.

    http://Windows.Microsoft.com/en-us/Windows/fix-corrupted-user-profile#1TC=Windows-7.

    It will be useful. Just answer us with the State, and we will be happy to help you.

  • Hi guys I need help for Pixel Bender, cansomeone send me a link, I have Photoshop CC and I googled and all I met seems to be corrupted. I also tried Adobe lab and nothing! Help, please!

    Hi guys I need some help getting Pixel Bender, can someone send me a link, I have Photoshop CC and I googled and all I met seems to be corrupted. I also tried Adobe lab and nothing! Help, please!

    Trevor says.

    Adobe Pixel Bender killed several years ago.

    John Nack on Adobe: Pixel Bender abandoned in PS, AE CS6

  • Is it possible to buy 3 three software only? I am interested to buy photoshop, ae and creation. Help, please.

    Is it possible to buy 3 three software only? I am interested to buy photoshop, ae and creation. Help, please.

    tessaso wrote:

    Is it possible to buy 3 three software only?

    It is possible, but this isn't the best way to do it.

    Adobe cloud plans don't offer a mix and a game approach. There are 3 separate plans: Plan of photography. Only App plans and applications.

    You have two options:

    1. Plan of photography ($ 10 / month) + App unique After Effects ($ 20 / month) + one App Premiere Pro ($ 20 / month) = $50 / month
    2. All Apps Plan = $50 / month

    Clearly the plan of applications is the best deal if you want apps 3 or more.

  • problem to insert only month and year instead of the full date

    select b.penjara_id, p.penj_lokasi, a.no_daftar, b.episod, b.nama1,to_char(a.trkh_mula_prl,'dd/mm/yyyy') as trkh_mula_prl, to_char(bulan_proses,'mm/yyyy') as bulan_proses,
            b.epd, b.lpd
    from prl_daftar_proses a, senarai_pesalah b, penjara p
    
    where a.no_daftar=b.no_daftar
    and a.episod=b.episod
    and b.penjara_id = p.penjara_id
    and a.setuju_jplp is null
    and a.bulan_proses between to_date(:FROM,'dd/mm/yyyy') and to_date(:TO,'dd/mm/yyyy')
    
    
    order by b.penjara_id, a.bulan_proses,a.no_daftar
    Hi, can someone help me how I can register only the month and year of the value which have full day in the database?

    for example, the date is 18/09/2012, but I want to just insert 09/2012 as a parameter. If I want to insert only one setting, I can do... But I have problem when I want to insert two parameters...

    Lina saleh wrote:
    I already try before that and he invites me error like this...
    "name of the invalid host/identification variable.

    Change the name of the connection variable to: from_date and: to_date

    Is a reserved keyword.

  • I can't erase unnecessary files on my Mac Pro by pressing option, command, and then J.  Help, please.  Thank you

    I can't erase useless files more pressing option, command, and then J.  Help, please.  Thank you

    option, command, and then J is not listed as a shortcut KB

    here:

    Keyboard shortcuts in Mac - Apple Support

  • loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • I want to collect rain for the day, month and year; Can what formula I use?

    I want to collect rain for the day, month and year; What formula or expression that I can use.

    I use a Rain Wise product that converts impulses to an analog value.  The rain wise device can be

    "the value measure up to 1", 5", or 10".  I will be setting the unit at 10 inches in increments of 0.01 inch.

    What I would do is at each time increments of signal I would consider it as 0.01 then after reaching

    a period of time a day or a month, back to zero.

    Need some advice on this problem.

    How about you, using a counter to count the number of times where the signal is less than 0.01?

    For example,.

    Counter.Count = signal<=>

    The total number of rain is

    Counter * 10 + signal

    Use TimeOfDay or TimeOfWeek to reset the counter.

  • I have IE to Mozilla Firefox password and can not find that my internet registered the username and passwords. Help, please!

    I have IE to Mozilla Firefox password and can not find that my internet registered the username and passwords.  Help, please!

    Tools > options > Security > passwords saved...

  • Recently installed the version of Windows Media Player, 11.0.5721.5280 and now whenever I play a piece PC stutters on audio producing a constant noise and freezes. Help, please!

    Recently installed the version of Windows Media Player, 11.0.5721.5280 and now whenever I play a piece PC stutters on audio producing a constant noise and freezes. Help, please!

    I suggest that you try to update the audio drivers to their latest version. Don't simply check Windows Update, but the site of the manufacturer of the sound card as well.

  • I am trying to download my trial version of photoshop. It says installation failed then downloads to 83%. When I click on start, it starts at 42% then fails again, again and again. Help, please

    I am trying to download my trial version of photoshop. It says installation failed then downloads to 83%. When I click on start, it starts at 42% then fails again, again and again. Help, please

    Hi Sherry,

    You can follow the thread: creative cloud hangs at 42% , where this issue is already discussed and resolved.

    You can also follow article: error "Unable to install" received when installing Adobe Creative Cloud desktop application that will help you get this fixed number.

    Let us know if it works or not.

    Thank you

    Yann Arora

  • Graphics Intel hd 5500 is sufficient to run Photoshop, dreamweaver, illustrator and coral? Help, please.

    Graphics Intel hd 5500 is sufficient to run Photoshop, dreamweaver, illustrator and coral? Help, please.

    Is this enough? Sure. It will be fun? Not always.

    Mylenium

Maybe you are looking for

  • A good laptop for video game development?

    I'm new to development and am looking for a new laptop that would work well for development. I know one a laptop is not the best option, but I need to be mobile because I tend to move around a lot. I'm looking for something under $ 1500. I need somet

  • Mail does not ask for new password after change

    I had to change the password for my email account based on Yahoo (sbcglobal dot) net because the hack/spam. It's the second time in 6 months, and I'm having the same problem that took place the last time. After changing the password through webmail i

  • USB port

    I have a HP Pavilion p7 - 1298c and I can't find the usb port.

  • How to make a usb connection between 2 computers.

    I have a son with two heads identical usb in, and I want to make a connection between 2 computers.

  • Why he say nothing and not allow me to add to my list of character?

    I am really new to Adobe Story and I am trying to write a script for my project. I already went in the list manage and added all my characters in. However, the part where it says the character, as this is where I'm supposed to put them, continues to