Extrating day from date

Hi All,
Extracting day form sysdate is <?xdoxslt:sysdate(‘Day’)?>
but i want to extract day from <?xdoxslt:ora_format_date_offset(xdoxslt:sysdate('YYYY-MM-DD'),1,'-')?> (sysdate-1 date's day)
How can i ? any ideas pleae share me.
Thanks

DD is working fine
<?xdoxslt:xdo_format_date($_XDOXSLTCTX,(xdoxslt:ora_format_date_offset(xdoxslt:sysdate('YYYY-MM-DD'),1,'-')),’DD’)?>
Day and Dy is not working giving result like check boxes
<?xdoxslt:xdo_format_date($_XDOXSLTCTX,(xdoxslt:ora_format_date_offset(xdoxslt:sysdate('YYYY-MM-DD'),1,'-')),’Day’)?>
do i need to give any supporting format for xdo_format_date?

Similar Messages

  • Finding Day from Date i.e. Monday, Tuesday etc

    Hi,
    I need to find out the day from Date. i.e. Monday, Tuesday etc. This is because if the date falls on Saturday or Sunday need to charge difference rates and on weekdays having normal rates.
    Thanks,
    Amol

    We should probably add a function for this as I've certainly seen the requirement before.
    Fortunately it's pretty easy to calculate using a simple rule - the trick is to pick a date in the past that was a Monday, and then use the modulo operator.
    For example:
    The day of the week = (the given date - 1980-01-07) modulo 7
    ie the 7th of January 1980 was a Monday, so every 7th day after that is also a Monday - so combined with the modulo operator this will give you:
    0 monday
    1 tuesday
    5 saturday
    6 sunday
    The only downside is that dates before 1980-01-07 will give a negative modulo (this is distinct from the mathematical modulo operator, but is necessary to be symmetric with the integer division operator truncating towards zero) - so dates before the baseline date will give:
    0 monday
    -6 tuesday
    -2 saturday
    -1 sunday
    You can either choose to write the rules to take this into account, or choose a baseline date so far in the past that it's unnecessary.
    Regards
    Andrew

  • Subtract business days from date - calculated column

    Hello,
    I had a calculated column on a library that took two dates and found the difference between them in business days, but I am not sure how to subtract business days from a date...for instance I get a start date from a form and I need to
    subtract 10 business days from that date.
    Can anyone help?

    I've always resorted to Javascript/JQuery for that kind of function. I found an old fashioned loop worked the best for me - it supports going forward or backwards. I key it off of a change in a starting date, or sometimes a status change. My actual production
    code takes into account another list where we remove holidays and non-work days.
    newDate = getNextDate(newDate, -3);
    $("input[title='Date Due']").val((newDate.getMonth() + 1) + "/" + newDate.getDate() + "/" + newDate.getFullYear());
    function getNextDate(currentDate, offset) {
    // offset is business days
    var wkend = 0;
    var index = Math.abs(offset); // need positive number for looping
    var neg = true;
    if(offset >= 0) { neg = false; }
    var curDOW = currentDate.getDay();
    var nextDate = new Date(currentDate);
    for(var i=1; i <= index; i++) {
    nextDate.setDate(nextDate.getDate() + (neg ? -1: 1));
    var nextDOW = nextDate.getDay();
    if(nextDOW == 0) {nextDate.setDate(nextDate.getDate() + (neg ? -2: 1));} // Sunday
    if(nextDOW == 6) {nextDate.setDate(nextDate.getDate() + (neg ? -1: 2)); } // Sat
    // alert("offset is " + offset + "start: " + currentDate + ", next date is " + nextDate);
    return nextDate;
    Robin

  • Year , Month & Day from Date.

    Hi HANA experts,
      Do help me to resolve this issue
    How can we extract or fetch year from the date.i went through some of the SCN blogs.where they create calculation views...but the steps are not that clear to me.
    can anyone please explain??
    My scenario is :
    I have date field in ANALYTIC VIEW which i have fetched from ECC  tables.
    now i need to get  the year  wise month wise and day wise reports. so what steps i should do in calculation view to get that??
    thanks
    Neeraja

    there is no ECC under SAP...as we are using suite on HANA fro AWS.and there is no restriction done by the basis till now...
    as we are new to these unable to trouble shoot things easily.
    thanks for your reply..

  • Substracting number of days from date

    Hi all, I need to create a user exit to get a date value based on another variable. Basically, 100 days minus the first variable.
    var2 = var1 - 100
    How can I write this?
    Thanks.

    Ok, I figured it out. I had to declare variables of type d and then assign it.
    IF i_step = 2.
        data:zday type d,
              zday1 type d.
    *****Loops for Variable.*****************************************
        LOOP AT I_T_var_range
             INTO loc_var_range WHERE
                      VNAM = 'ZENDT' or
                      VNAM = 'ZENDATE'.
        zday = loc_var_range-low.
        zday1 = zday - 275.
    *      l_S_range-low = loc_var_range-low - 275.
          l_S_range-low = zday1.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO E_T_range.
        ENDLOOP.
        EXIT.
      ENDIF.

  • Need help finding accounts that expire 90 days from date created

    Hi, I am trying to find all temp accounts in AD that expire 90 days after the account was created.  Here is what I have so far. I am not sure how to calculate that. I am not receiving any output.
            $expireDate = (Get-ADUser -filter * -Properties accountExpires).accountExpires
        $accountExpireDate = ([System.DateTime]::FromFileTime($expireDate)).AddDays(-90).Date
        Get-ADUser -Filter {whenCreated -ge $accountExpireDate} -Properties whenCreated | select name | export-csv 'c:\temp\all_temp_users.csv'enter code here

    OK. I read your question again and I think I understand what you are asking now.
    Try it this way:
    $DaysSinceCreation = 90
    get-aduser -ldapfilter "(&(!(accountExpires=0))(!(accountExpires=9223372036854775807)))" -properties accountExpires,whenCreated | foreach-object {
    $accountExpires = [DateTime]::FromFileTime($_.accountExpires)
    if ( ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation ) {
    new-object PSObject -property @{
    "distinguishedName" = $_.DistinguishedName
    "whenCreated" = $_.whenCreated
    "accountExpires" = $accountExpires
    -- Bill Stewart [Bill_Stewart]
    Here is what i modified for expand the range of $dayssincecreation value. It appears to work but is kind of sloppy. Its not a big deal, but is there a way to make this cleaner? i tried a range variable and did not have any luck. Again thanks for all your
    help!
    $DaysSinceCreation = 85
    $DaysSinceCreation1 = 86
    $DaysSinceCreation2 = 87
    $DaysSinceCreation3 = 88
    $DaysSinceCreation4 = 89
    $DaysSinceCreation5 = 90
    $DaysSinceCreation6 = 91
    $DaysSinceCreation7 = 92
    $DaysSinceCreation8 = 93
    $DaysSinceCreation9 = 94
    $DaysSinceCreation10 = 95
    $DaysSinceCreation11 = 96
    get-aduser -ldapfilter "(&(!(accountExpires=0))(!(accountExpires=9223372036854775807)))" -properties accountExpires,whenCreated | foreach-object {
    $accountExpires = [DateTime]::FromFileTime($_.accountExpires)
    if ( ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation1 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation2 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation3 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation5 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation6 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation7 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation8 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation9 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation10 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation11) {
    new-object PSObject -property @{
    "SamAccountName" = $_.SamAccountName
    "whenCreated" = $_.whenCreated
    "accountExpires" = $accountExpires

  • Name of the day from date based on the logon language

    Hi All,
    Could anyone help me with any function module which gives the name of the day after entering the date. but the name of the day should be language specific. I know DATE_COMPUTE_DAY_ENHANCED gives the name of the day but this is in english. I want the name/ description based on the logon language.
    For example, I login in EN and I execute the above function module for date, 19.10.2010. so the weekday is Thursday. but this 'thursday' should be given in the logon language not the same even if I login in DE etc.
    Thanks a lot in advance!!
    Regards,
    Swathi

    Hi Swathi,
    You can try to use FM DATE_COMPUTE_DAY to get the day ID, and then consult table T246 or execute FM DAY_NAMES_GET to get the day description in the desired language.
    Kind regards,
    Garcia

  • Determine day from date

    Hi all,
    I would like to determine if the day is working day given a date. I want to exclude weekend and public holidays. Is there any FM which can give me that.
    Please help.
    Thanks
    Devang
    Edited by: Diksha Chopra on Dec 29, 2009 1:28 AM

    Hi
    Use this
    mport java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.List;
    public class WorkingDaysFinder {
        static List<Date>  holidayList =  new ArrayList<Date>();
        // holiday list
        static{
            holidayList.add(new Date("08/18/2009"));
            holidayList.add(new Date("08/19/2009"));
        public static void main(String args[]){
            Date day1 = new Date("08/17/2009"); // start date
            Date day2 = new Date("08/27/2009"); // end date
            Date dayCounter = day1;
            int counter = 1;
            while(dayCounter.before(day2)){
                // check for weekends and holiday list
                if(dayCounter.getDay() != Calendar.SATURDAY &&
                   dayCounter.getDay()!=Calendar.SUNDAY &&
                   !holidayList.contains(dayCounter))
                    counter++; // count weekdays
                dayCounter.setDate(dayCounter.getDate()+1);
            System.out.println("Working days = "+counter);
    Regards
    Monika

  • "Expected Close" date needs to be 30 days from opened on day

    Hi all,
    We are trying to auto-populate an opportunity field ("expected close") with a date that would be 30 days in the future from the opportunity field "opened on" date. We have the opened on date already set so that it auto-populates with the date that a new opportunity is created.
    This is what we have tried so far in the opportunity field edit area:
    [<CloseDate>]=Today()+30
    Any ideas as to why this isn't working, and ideas on how to make it work are appreciated!!

    Yes this works.
    Go to the Admin Section, Application customization, pick the field that you want to update (in our case Opportunity),
    Click Opportunity Field Set-up, pick the field that you will update (in our case Close Date) and click "edit".
    In the Default Value add this: Today()+30 (or however many days you want (in our case "30"days from created date))
    click "Save"
    Log out and log back in to see if update has happened.
    GOOD LUCK!!

  • I purchased an iPad mini on October 10th.  I want to return it and get the new ipad mini retina when it comes out.  How do I do that if the new ipad mini release date isn't until "later in November", which is beyond the 14 days from my purchase date?

    I purchased an iPad mini on October 10th.  I want to return it and get the new ipad mini retina when it comes out. I am currently still within the 14 day return/exchange window but how can I exchange it if the new ipad mini release date isn't until "later in November", which would be beyond the 14 days from my purchase date?  If apple announces a new version of a product you just purchased but won't actually release it for more than 14 days, how can you possibly exchange the one you just bought?  Is my only option to return the one I bought on the 10th (so return by 10/24) and then not have an iPad until the new one is available for purchase?  Or would it make any sense to return the one I bought, get a new one, which would presumably have another 14 day return window, and then exchange THAT one for the new ipad mini w/ retina when it comes out (hopefully within that second 14 day window)?

    Call the apple store you got it from and ask them. Sometimes in the past they've extended the 'no questions asked return' but only Apple can tell you for sure.

  • How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    How to calculate a number of calendar days from a start date (e.g. 60 days from 3/10/2012)

    DT,
    If the starting date is in Column A, and you want to calculate what the date would be 60 days later, in Column B, write in Column B:
    =A+60
    Couldn't be much easier.
    Jerry

  • Customer Exit for Number of Days from 1 st Apr to last date of Month Enter

    Hello BI Experts,
    I have a requirement to count the number of days from 1 st April of current year to the last date of month entered.
    For example : The use will enter say July 2010 or 003.2010  (as Fiscal Year Variant is V3 ).
    Today is 14 July ...So we have to first find out the end date of the July month ie 31 st July
    Then go to 1 st April 2010.
    Now calculate the Number of days between 1 st April to 31 st July 2010.
    I consider I have to create two Customer Exit variable
    as below
    1 st customer exit Bex variable  say  ZLY_MTH  ( Last day of Month Entered)
      and i_step = 1
    2 nd Customer Exit BEx Formula variable say ZF_NUMDAYS ( Number of days between two dates)
    i_step =1 .
    Please provide me the logic for the above two.
    Thanks in Advance.
    Regards,
    Amol Kulkarni

    PSUDEO CODE:
    1. Initially LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'ZMONTH'.
    2. Get the Month input using VAR_MONTH2 = LOC_VAR_RANGE-LOW+4(2)
    3. Now calculate Month+1: VAR_MONTH2 = VAR_MONTH2 + 1 (Refer **)
    4. Now calculate the Current Year: VAR_YEAR = LOC_VAR_RANGE-LOW+0(4).
    5. Get the 1st Day of the Month (VAR_MONTH2):  CONCATENATE '01' '/' VAR_MONTH2 '/' VAR_YEAR INTO L_S_RANGE-LOW.
    6. SUBRACT 1 (0DATE) from this DATE (This will give the logic for last day of the current month)
    Insert this code also for using the date conversions
            CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
              EXPORTING
                INPUT  = VAR_MONTH2
              IMPORTING
                OUTPUT = VAR_MONTH2.
    Pls. check out this logic. Guess it would solve your need.
    Thanks,
    Arun Bala

  • Extract data on report between last 30 days from current date.

    Hi Experts,
    Ealrier i had provided user promt to select the date range, now i need to schedule the report for this i have to set the date between last 30 days from current date.
    How can i add this in formaula on record selection.
    before:
    {pm_process.pm_creation_date} in {@Start Date to UTC} to {@End Date to UTC}
    I tried:
    {pm_process.pm_creation_date} in CurrentDate() - 30 to CurrentDate()
    But this is diplaying me only data of 30th date from current date.
    Please advice.

    Hi Brian,
    Thank you!
    1. I have not created any function for {pm_process.pm_creation_date} in [CurrentDate() - 30 to CurrentDate()] i am just adding this on Record Selection and its not helping.
    2. {pm_process.pm_creation_date} in Last30Days; this is throwing below error.
    please advice what to be done?

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

Maybe you are looking for

  • Error in PR workflow - 'Object does not exist '.

    Hi experts, We have a custom workflow configured from purchase requisition, uses object BUS2105. Now there is an error which occurs in ad hoc basis due to which this workitem ends in error. Error says 'You tried to create an instance of the object ty

  • How to select OS X startup disk after booting up in 8.6

    I recently purchased an old iBook G3 (original clamshell model) to run some old Mac games I had laying around (was in a nostalgic mood I guess). It came with OS 8.6 and I installed an old copy of OS X 10.2 Jaguar onto it. It wouldn't let me run in th

  • I did not find iPhoto in mac book pro

    i bought a mac pro and i did not find the backages of iphoto and imovie

  • Problem with fileadapter

    Hi, I want to convert a xml-file into a txt-file with follow structure: Source_value_1a;source_value_2a;source_value_3a Source_value_1b;source_value_2b;source_value_3b Source_value_1c;source_value_2c;source_value_3c follow error appeares in the messa

  • Brush strokes disappear upon to Flash

    I've created an Illustrator CS3 illustration that includes a few different art brush strokes at different line weights. The brush strokes that appear small (small in size/shape/width) in the file disappear entirely when I import the file onto the sta