How to find 90 days from today?.

Post Author: cruser08
CA Forum: Formula
is this formula will do always?...i want a general formula.
dateserial(year(currentdate)-1, month(dateadd("m", -3, currentdate)),Day (currentdate))

Post Author: SKodidine
CA Forum: Formula
currentdate - 90 was my original proposed solution, but when I ran it on 03/04/2008, it gave me a result of 12/04/2007, whereas it should have been 12/05/2007.  Dateadd('d',-90,currentdate) also run on 03/04/2008 gave the correct result of 12/05/2007.  I believe currentdate - 90 was not taking the leap year into account.

Similar Messages

  • How to find 90 days inactive computers from dsa.msc?

    How to find 90 days inactive computers from dsa.msc?AliahMurfy

    Can’t you search
    lastLogonTimestamp from ADUC?  Here is the LDAP string:
    (&(objectCategory=computer)(lastLogonTimestamp<=129418776000000000))
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX
    Blogs - http://blogs.sivarajan.com/
    Articles - http://www.sivarajan.com/publications.html
    Twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara
    This posting is provided AS IS with no warranties,and confers no rights.
    You can but that attribute only gets replicated every 14 days or something like that, if you want to get an accuratebe indication of when a user/computer last logged on then you need to query the lastLogon attribute for that account on every DC in the domain
    and take the most recent value as the real value (which is what my app does).
    Also the value you are using for the lastLogonTimeStamp attribute in your LDAP query string example will always refer to the same date, so whilst it might find all accounts that haven't logged on for 90 days now (give or take the 14 day replication
    period), in 10 days time it will find accounts that have not logged on for 100 days. You may well be aware of this and know how to work out the correct value each time you want to run the query but the OP probably is not so I thought I should point it out.
    My website: www.cjwdev.co.uk My blog: cjwdev.wordpress.com

  • How do you add a due date 2 days from today in a workflow

    So I'm creating a workflow that creates a task in a task list after I've added a new item to my clients list. So for example by adding a new client to the client list, a task will be set to 'Complete all contact details'. All I want to do is set a predetermined
    due date, so instead of picking the current date or a specific date I want the workflow to work out the due date 2 days from today. How can I do this? Please note that I want to be able to change the predetermined due date in the same work flow, so for another
    task I'd like it to be 4 days or a week from today.
    Thanks in advance! :)

    Hi Sarah,
    Thanks for posting your issue, 
    Go to your Tasks List and go into the List Settings. Click on the Due Dat column and tick the Calculated radio button. In the formula, put [Today]+2 and click OK. Go back to the list and select New and you'll see the Due Date is 2 days in the future.
    If you need to do this within the workflow, you'd use an Add Time to Date action, setting it up to add 2 days to the Current Item created by field. Then, you'd use an Update item action to update the Due Date field to the date variable the Add Time to Date
    action output.
    Also, browse below mentioned URL for more details.
    http://dlairman.wordpress.com/2010/10/14/limiting-sharepoint-workflow-due-dates-to-business-days/
    http://www.documentmanagementworkflowinfo.com/sample-sharepoint-workflows/4-ways-set-date-value-sharepoint-designer-workflow.htm
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to subtract a day from the presentation variable @{system.currentTime}

    Hello,
    How can subtract a day from the presentation variable - @{system.currentTime}
    I use the above as a title in the report. However I want to subtract a day from the above variable. How can I accomplish it?
    Thanks.

    Hi,
    Did you try the steps which I mentioned above. You can use TIMESTAMPADD function in many places in your report but I think not in title section of the title view.
    Also you can try using Narrative view instead of title view to achieve this. Follow below steos:
    * Pull another column in the report and change its fx to TIMESTAMPADD(SQL_TSI_DAY, -1, @{system.currentTime})
    * Now go to the Narrative view and add the below text in Narrative section of the view.
    Active Person Report as of @1
    Here @1 assuming the new column created is placed before all the columns in the request.
    * Also set the 'Rows to Display' as 1.
    * Delete Title view from the report and this narrative view on top of your report.
    Hope this helps.
    Thanks

  • How to find delete message from iphone

    how to find delete message from iphone?

    I am afraid that I don't think there is a way to do this.

  • 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

  • How to find server model from 11g OEM mgmt$ views

    How to find server model from 11g OEM mgmt$ views
    server model like Dell 710, DL380 G7 etc..,

    It is included in this query (run as user SYSMAN):
    SELECT t.target_name AS host_name,
    ecm_util.HOST_HOME_LIST (t.target_name, t.target_type) AS home_info,
    hw.vendor_name AS Vendor,
    hw.system_config AS System_Config,
    hw.machine_architecture Architecture,
    os.name AS os_name,
    os.base_version os_base_version,
    os.update_level os_update_level,
    os.address_length_in_bits os_address_length_in_bits
    FROM mgmt_targets t, mgmt_ecm_snapshot s, mgmt_hc_os_summary os, MGMT_HC_HARDWARE_MASTER hw
    WHERE t.target_type = 'host'
    AND t.target_name = s.target_name
    AND s.snapshot_type = 'host_configuration'
    AND s.target_type = 'host'
    AND s.is_current = 'Y'
    AND s.snapshot_guid = os.snapshot_guid
    AND hw.snapshot_guid = s.snapshot_guid
    ORDER by t.target_type
    The asked info is available in the view MGMT_HC_HARDWARE_MASTER, column: SYSTEM_CONFIG
    Eric

  • Planned order are showing in PWB even outside the View Recommendations for (Days from Today) set at preferences

    Hi
    We have set PWB preferences View Recommendations for (Days from Today) as 10days,
    But in supply/demand the datas are showing outside this time limit.For example if I saw today (04-Nov-days),only 10days from today suggested order dates order should show.But it is showing even orders in dec also.Any setup we mssed?
    Please guide us
    Regards
    VKPK

    Hi
    We have set PWB preferences View Recommendations for (Days from Today) as 10days,
    But in supply/demand the datas are showing outside this time limit.For example if I saw today (04-Nov-days),only 10days from today suggested order dates order should show.But it is showing even orders in dec also.Any setup we mssed?
    Please guide us
    Regards
    VKPK

  • How I find my iphone from my imac off.   hvordan jeg finder min iphone fra min imac af?

    hej jeg står og mangler hjælp til hvordan jeg finder min iphone fra min imac af?
    hello I'm standing and need help with how I find my iphone from my imac off?

    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support

  • SharePoint Designer Workflow, condition: if value of date/time field is less then x days from today, do something

    Hello,
    A field in a list is called 'Date'  (it is a date/time type of field)
    Now I want a condition in a workflow that checks the 'date' field. If the date is less than X days from today it should (for example) send an email to a certain user.
    Is this kind of condition possible in a SharePoint Designer Workflow?
    Thanks in advance!

    Hi,
    As I understand, you want to create a workflow that can check data.
    The workflow can be:
    1. Add 0 months, 2 days, 0 hours, 0 minutes to Current Item:date1 (Output to Variable: date ) (2 days is the days you can set, and Current Item:data1 is the datefield you want to check from today)
    2. Add 0 months, 0 days, 0 hours, 0 minutes to Today (Output to Variable: date1 )
    3. Set time as 0 : 0 for Variable: date (Output to Variable: date2 )(get the Variable: date Date only )
    4. Set time as 0 : 0 for Variable: date1 (Output to Variable: date3 )( get the Variable: date1 Date only)
    5. If Variable: date2 equals Variable: date3
    6. Email these users
    https://onedrive.live.com/redir?resid=40B702A9FB117DD!136&authkey=!ABtMg5n3OtPakCg&v=3&ithint=photo%2cPNG
    More reference:
    http://stackoverflow.com/questions/1249366/start-sharepoint-workflow-x-days-before-expiry-date
    Best regards,
    Sara Fan

  • How to find max(time) from table using group by

    how to find max(time) from table using group by
    select var max(time)
              from table
              into (var1, time1)
               where .....
                 group by var.
    it is fetching record which is top in table.
    if u can help?
    regards.

    No this will fetch the maximum time from teh table.
    select var max(time)
    from table xxxx
    into (var1, time1)
    where .....
    group by var.
    Refer this code
    TABLES SBOOK.
    DATA:  COUNT TYPE I, SUM TYPE P DECIMALS 2, AVG TYPE F.
    DATA:  CONNID LIKE SBOOK-CONNID.
    SELECT CONNID COUNT( * ) SUM( LUGGWEIGHT ) AVG( LUGGWEIGHT )
           INTO (CONNID, COUNT, SUM, AVG)
           FROM SBOOK
           WHERE
             CARRID   = 'LH '      AND
             FLDATE   = '19950228'
           GROUP BY CONNID.
      WRITE: / CONNID, COUNT, SUM, AVG.
    ENDSELECT.

  • How to find lost files from Iphone without back up

    How to find lost files from iPhone without back up?

    If you don't have a back up, there's no where to restore them from.

  • How to set default date of 3 weeks(21 days) from today's date during page load?

    I want to show the default date as 3 weeks from today's date during page load.
    For example ,i have given as adf.CurrentDate + 21 in EO for the attribute 'DueDate'. But it is showing me the date as 9.7.2013. 3 weeks default date is not getting set.If i give adf.currentDate also ,it not giving me today's date,it showing the 9.7.2013 only.Kindly provide your suggestions to set the default date as 3 weeks from today's date during page load.Thanks in advance.

    Hi,
    when you set the value on the entity level then you don't want to show it during page load but when the field is empty ? Correct? if so then the use case is a different one. The easiest way to implement this would be to create a Rowimpl class (Java option) and then in the get method of the entity attribute check if the value is null and if it is, set it to the current date + 21 days. This way all rows will be set with the 3 weeks due date but fields are not overridden each time the row is queried
    Frank

  • How to customize a datefield component to visible only 40 days from today?

    In my project, I came into a situation like, I had a datefield component for which everyday it must show only 40 days from the current day and the remaining days should be unselectable. it can be in any SDK 3/4.
    Please somebody help me in logic.
    Thanks in advance

    read this.
    http://blog.flexexamples.com/2007/12/17/setting-selectable-ranges-in-the-flex-datefield-co ntrol/

Maybe you are looking for

  • How to bind a specific attribute of an element to an input field

    HI, in my web shop application I create an overview page of the items dynamically in the wdDoModify Method. Each item has it's own transparent container. I do not use tables or row repeaters, because they did not fullfill my requirements. Now I have

  • How to create process chain with dso and infocube at a time

    hi friends,   i have a FLATFILE in application server and i need to upload it to STANDARD DSO and i created a INFO PACKAGE and DTP for DSO. i have a STANDARD INFOCUBE to upload data from above DSO. here DSO is the source.  i want to schedule  this pr

  • Server Physical NIC layout best practice with 1000V

    I have several Dell 710 servers with 2 10Gb Intel NICs (pNIC 4,5) and a single QuadGE card (pNIC 0-3) in each. pNIC 4/5 I channel-group with trunking the 2 - 10Gb as Active/Active to two Nexus 5010s for the Virtual Ethernet Module (VEM) for the VMs.

  • Setting CLASSPATH question

    Hi,           I'm evaluating Weblogic 5.1. My evaluation requires me to write an           Enterprise Java Bean that uses Container Managed Persistence, place it on a           server, and have an HTML page call into the EJB through a servlet. The   

  • Tabs and pages

    Hi, Am I correct in saying that you can make a tab jump to a page but you can't make a page 'fit into a tab'? What I mean is the following: I have a page x connected to a tab set. Created a region on page x, with display point of After Header, which