Send reminder 30 days before expire date?

Hi, I hope someone can help me with that.
I am getting in an "expireDate" from a Database.
It can be for ex. "5/21/2007" . This date is a String.
30 days before that expireDate is reached, I want to send a
reminder to the client, like
"your membership is going to expire".
How can I find the date ! 30 days before it expires?
Best regards,
Luciewong

Hi, to All,
unfortunately still I could not get the solution for my
problem.
I have 2 strings coming in from a Database.
todayDate = "9/7/2006";
expireDate = "4/20/2007";
// now, I could find the difference in months with the code
below>
aDate = todayDate;
bDate = expireDate;
TimeUsed.text =
monthsBetween(toDate(aDate),toDate(bDate));//<<will be "7"
function toDate(str){
var d_arr = str.split('/');
return new Date(d_arr[2],d_arr[0],d_arr[1]);
//xxx
function monthsBetween(d1,d2){
var d_date = new Date(d1.valueOf());
var t_date = new Date(d2.valueOf());
var m = -1;
//xxx
while(d_date<=t_date){
//xxx
d_date.setMonth(d_date.getMonth()+1);
m++;
return m;
//xxx
//This will return me the difference between the 2 date
strings in months, great, but can I get the d a y s between??
Thank you for your help.
Luciewong

Similar Messages

  • Send Email alerts befor expiration date on list......

    Other than using SharePoint Designer or creating a workflow what other ways can be used to notify us  (by email) say, 2 weeks, before the expiration date column in a list record is hit?
    TIA,
    edm2

    Hi romeo,
    You can try to use timer job as suggested above, and set the timer job to run at specific time duration. in the timer job logic, check the expiration time in the list item field, and do your operation. Please get better understanding about timer job first,
    you will get to know how to do this.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How to define reminder letter before due date

    Dear Expert,
    How to define dunning procedure in FBMP (for tcode F150) for this condition:
    1st reminder letter should be generated 7 days before due date.
    Currently the setting for dunning level is 4 (days in arrears: blank, 14, 60, 180)
    But I confuse how to be set in 'Days in Arrears' for the first reminder letter?(I set blank since could not set as negative, e.g -7 (7 days before due dates)
    Kindly advice
    Thank you.

    Hi
    maintain Denning Level like Below
    Days in arrears            0    7  53   173
    Calculate interest
    Print Parameters
    Always dun?
    Print all items
    Payment deadline      7     7     7   7
    hope it will resolve your issue
    satish

  • Great! ipad was delivered 6 days before estimated date.

    Just wanna share.
    I have seen someone got headache about waiting for shipment.
    Mine just arrive this morning , 6 days before estimated date!
    I ordered ipad 3G 64Gb since 19th May.
    then , Apple showed estimated date.
    ship : 4th Jun
    deliver : 8th Jun
    OMG! that's very long wating.
    Luckily, My order status turned to "Prepared for shipment" on 28th May
    then, it started to ship on 30th May.
    And Apple send email "delivers 4th Jun"
    Moreiver,Fedex showed " delivers 3rd Jun" wow!
    Finally, I've got it on 2nd Jun!!!!
    Here is my tracking information from Fedex :
    Jun 2, 2010 11:51 AM
    Delivered
    WILLIAMSBURG, VA
    Jun 2, 2010 7:46 AM
    On FedEx vehicle for delivery
    HAMPTON, VA
    Jun 2, 2010 7:41 AM
    At local FedEx facility
    HAMPTON, VA
    Jun 2, 2010 6:24 AM
    At dest sort facility
    NORFOLK, VA
    Jun 2, 2010 5:05 AM
    Departed FedEx location
    INDIANAPOLIS, IN
    Jun 1, 2010 1:17 AM
    Arrived at FedEx location
    INDIANAPOLIS, IN
    May 31, 2010 3:32 PM
    Departed FedEx location
    ANCHORAGE, AK
    May 31, 2010 1:03 PM
    Int'l shipment release
    ANCHORAGE, AK
    May 31, 2010 12:24 PM
    Arrived at FedEx location
    ANCHORAGE, AK
    May 31, 2010 2:06 PM
    In transit
    LANTAU ISLAND HK
    May 31, 2010 9:58 AM
    Left FedEx origin facility
    SHENZHEN CN
    May 31, 2010 8:38 AM
    Picked up
    SHENZHEN CN
    Package received after FedEx cutoff
    May 30, 2010 4:27 AM
    Shipment information sent to FedEx
    good job! That's not bad.
    Thanks Apple , Fedex.

    Thats Great
    I had a similar thing I ordered mine on Monday I got it yesterday when it said it wouldn't be here till June 30th

  • What the way to unsubscribe iMatch before expire date ?

    what the way to unsubscribe iMatch before expire date ? to change cauntry

    Hi,
    Read this https://discussions.apple.com/docs/DOC-5432
    Jim

  • Material availability date 1 day before delivery date

    hi
    we want to set material availabiltiydate 1 day before request delivery date. how to configure that. pls advice. thanks

    hi,
    Please go through this link it will help you configure and  understand the material availability date and its dependency on the other activities.
    http://help.sap.com/saphelp_46c/helpdata/en/dd/5607e7545a11d1a7020000e829fd11/content.htm
    Hope this will help you to resolve your query.
    Regards,
    Krishna O

  • Get Date x number of days before current Date

    How do you subtract x number of days from a Date object?
    Is there a better way than
    int x = 28; // number of days
    long minisPerDay = 24 * 60 * 60 * 1000;
    Date newDate = new Date (oldDate.getTime() - (x * minisPerDay );

    > How do you subtract x number of days from a Date object?
    Calendar c = Calendar.getInstance();
    c.setTime(yourDateInstance);
    c.add(Calendar.DATE, -x);
    Calculating Java dates: Take the time to learn how to create and use dates
    Working in Java time: Learn the basics of calculating elapsed time in Java
    Good luck! :o)
    ~

  • Send Reminder using the Form Dates

    Hi all.
    I don't know what is the best way to send reminders (emails) checking the Form dates .
    For example:
    There is a task assign where the user enter 5 dates (date 1, date 2, date 2.... etc)
    Then, I need to send emails to "Xpath user" when the system date  is:  "date 1" - 24 hrs (for example).  The same with date 2 , date 3... etc.
    How can I to do it?
    Need I to write the dates in Database?
    Some Ideas?
    Thanks a lot.
    Maria

    You could use a gateway with a branch for each email that will be sent. Put a Wait Point before the send email step. Set the days to wait as an XPath expression using get-days-from-dateTime-difference(current-date(), Form Date). Subtract 1 for your minus 24 hours.

  • My ical is set up for all Birthdays which are set up for "yearly" to give an alert 2 days before the date. The alert appears on my Mac and ipod(via mobile me) but not on either of my ipads. If I change the Birthday setting to 'once' then the alert appears

    Tried setting birthdays on the Mac first but still no joy.

    If you have been using the mac.com Apple ID to make iTunes purchases recently, then there should be no issues continuing to use it with the new iPhone. I would abandon the new ID as you will never get Apple to merge the two IDs. I have had a mac.com ID for years and continue to use it with my iPhone 4S.
    Tell us the issues that you encounter trying to set up the iPhone with the mac.com account.

  • Workflow to send mail 20 day before the expiry date

    Dear All,
    I created a workflow to send mail when a calculated column date is equal to today as follows:-
    Step1
    add -20 days  to Current Item:Expiry Date (Output to Variable : date)
    then set variable : Notification1 to Variable : date
    Step2
    If variable:notification1 equals (ignoring time) Today
    email users
    Now when i add a new item to the list , the workflow status is set to In progress , and when i refresh the page the status is changed to Completed before the condition is met and!!
    Any help
    Regards

    If I Understood your question correctly, you need to send email to user 20 days before expiration date. 
    From above you workflow I can see, you are just checking your condition once a item is created. As your Step2 condition is not met your  workflow is completed without any error. I suggest you might want to try below workflow
    Step1
    add -20 days  to Current Item:Expiry Date (Output to Variable : date)
    then set variable : Notification1 to Variable : date
    then Pause until Variable:date
    Step2
    email users
    Above workflow design will pause you workflow till 20 days before expiry date. and then send email to user. 
    Please ignore syntax, I just tried to put logic.
    Below is explantion on how to use Pause Action(from MSDN) in Sharepoint workflow
    This action is initially displayed in a workflow step as Pause until this time.
    Use this action to pause the workflow until a particular date. You can add a current date, a specific date, or a lookup.
    Following are examples of what the action might look like in a workflow step,
    Pause until 1/1/2010 12:00:00 AM
    Pause until Variable: A week from Modified
    If this helps Please mark it answer or vote as helpful.
    Thanks
    Siddharth

  • Send a reminder mail to a person in 'Assigned To' 7 days before the 'Due Date'

    I want to create a workflow on SharePoint list and it should send a notification email to 'Assigned To' person before 7 days of Due Date (another column in the list).
    I'm new to SharePoint. Please explain the steps in detail.
    Any suggestions would be greatly appreciated. Thank you.

    Hi Sekhar,
    Hope the below links should be useful to you.
    http://sharepoint713.blogspot.in/2011/09/sharepoint-designer-workflow-to-send.html
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/e85c2fcb-81fa-4c8d-9f0d-3c4799de771b/send-a-reminder-mail-5-days-before-and-1-day-before-the-due-date?forum=sharepointcustomizationlegacy
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/1e2912f4-3119-49b0-b620-e67f629596d0/how-to-send-alert-on-2-days-before-of-task-due-date?forum=sharepointcustomizationlegacy
    https://mysharepointchronicles.wordpress.com/2012/11/05/sharepoint-list-with-workflow-email-reminder-set-to-send-30-days-from-created-date/
    http://markeev.com/Articles/item-expiration-reminders-in-sharepoint-using-workflow.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Be careful of "Prompt user to change password before expiration" policy -- it's counting the days wrong!!

    After several tests, I'm pretty sure that the policy "Interactive logon: Prompt user to change password before expiration" is counting the wrong days. (Note: this policy is in Windows Settings > Security Settings > Local Policies > Security
    Options)  So I think I should post this in the forum in the hope that it could be helpful to others in the same case as me, esp if the policy is pushed out as a domain-wide policy.
    First, the context of the test, ie domain-wide policy settings:
    1. Password minimum age = 2 days
    2. Password maximum age = 4 days
    3. Prompt user to change password before expiration = 2 days
    If everything is going fine, users will be asked to change password when it is changeable (ie it has reached the minimum age).  However, it turns out that users are prompted BEFORE they can change password.  Look at the image below that I got in
    Win7:
    (In WinXP, we have similar prompt when user has just logged in)
    Look at the clock: it's 13:16 (04/12/2013).  Then look at the DOS window in which I ran the "net user /domain" command and read the line "Password expires": it's shown
    06/12/2013 18:09:04.
    A little math would tell me that if users are prompted to change password *2 days* before expiration, the dialog will appear
    ONLY AFTER 04/12/2013 18:09:04.  But since the prompt is shown at 13:16 (ie well before 18:09), that mean the "prompt user...." policy makes mistakes in calculating the moment to show the prompt.
    In other words, if we have the policy set like this:
         Prompt user to change password before expiration =
    N days
    The prompt will actually appear from N+1 days before expiration.
    I would consider this as a bug, but I also suppose it's hard to make Microsoft fix it.  So that's why I make this post to warn others.  In my case, I have received several calls from users complaining that they were prompted to change password
    but their new passwords were always refused and they had no idea what went wrong.  And it took me a lot of effort to sort out what really went wrong.  And in order to work around this stupid bug, I have to change the "Prompt user...." policy
    to N-1 days (before expiration) instead of N days previously.
    Hope this help

    Hi,
    Based on my research, you are right that the prompt policy is implemented by date, which is by design.
    “Set
    Interactive logon: Prompt user to change password before expiration to 5 days. When their password expiration
    date is 5 or fewer days away, users will see a dialog box each time they log on to the domain”, I quoted this sentence from the article below:
    Interactive logon: Prompt user to change password before expiration
    http://technet.microsoft.com/en-us/library/jj852243.aspx
    The problem is consistency!  For Minimum/Maximum password age properties, they are also defined for
    days as well.  But for them, days are exact days, ie a
    multiple of exactly 24 hours.  There is an "Explain" tab for every parameter, but even if you read them through, you can't tell if day means strict multiple of 24 hours or loose definition of days.  I'll leave the exercise to you to read
    them if you like and spare me the article from your KB library.
    As for the password minimum age part, what I mean is that is why users can’t not change their password within 2 days when the prompt appears before the changeable time.
    Anyway, I agree with you that we need to be careful when we configure the password policy because the Prompt policy is not doing calculation by hours.
    Miss, the 2 days is just a TEST EXAMPLE.  Let's say it's
    N days if you was unable to understand.  I wouldn't change N days to N-1 days because of this stupid GUI bug.  As I said earlier and let me repeat it once more,
    Minimum password age = N days is a security policy and it is more important than the user prompt and no security officer with sane mind will change this.

  • Script Add bulk user with CSV, and set expiration date

    After importing the AD module, the line:
    Set-ADAccountExpiration -identity JohnDoe -timespan "365"
    Works just fine, but how would you automate this with a script that would read a csv-file. The -identity cmd dosen't seem to like my $SAM setup. Perhaps it's a better way to get-aduser and pipe it to set-accountexpiration. Is there a swift way to add the
    expire date to the user I just created with my CSV-file?
    Thanks!

    Thank You!
    You're very welcome.
    -AccountExpirationDate parameter of New-ADUser only seem to work with -DateTime, a specific date, while -TimeSpan is optimal for this solution.
    You can use Get-Date's AddDays method to generate a datetime object for use in this situation, see the code I'm posting below for an example.
    Now on to the next challange to warn me when they reach "32" days before expiration. Was thinking of running a Task Scheduled bath file that could collect number of days left and report it if below the mentioned days.
    Here's one method you can use for finding these users:
    $cutoffDate = (Get-Date).AddDays(32)
    Get-ADUser -Filter * -SearchBase 'OU=Users - TEST,DC=domain,DC=com' -Properties AccountExpirationDate |
    Where { $_.AccountExpirationDate -and $_.AccountExpirationDate -lt $cutoffDate }
    Just so you're aware, we generally try to keep threads to a single question.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Advance payment before delivery date

    Hello experts,
    I have a requirement that after creating PO I need to make advance payment 2 days before receiving goods(delivery date) in case of local vendors, whereas in case of International vendors I need to make advance payment 8 days before delivery date.
    How can I achieve this functionality????
    Please help.

    hii shubh,
    u can achieve it the Payment terms
    define two terms of payment with t-code OBB8, in first give the amt of adv payment
                                                                                    in second, rest amt. here u tick INSTALLMENT PAYMENT
          one more u define terms of payment , there u click on block key with A or B.
    and assign it in OBB9.
    u search sdn also regarding this.
    Thanks.
    Nisha
    Edited by: Ms. nisha on Jul 13, 2011 2:02 PM
    Edited by: Ms. nisha on Jul 13, 2011 2:04 PM

  • How to set SPD workflow to send email one day before the Due Date? ?

    I need to add a step in workflow for a item tracking list: send reminder email one day before the due date.
    I thought there is an Action in SPD: wait for [Due Date] to equal [Today]minus one day
    But there is no way to do that.
    I figured may be I need to create a calculated field [cal-date] that set to: =[today] plus one day.
    Then in workflow -
    wait till [Due Date] is equal to [cal-date], and send an email
    What is the formula for the above calculated field [Today] plus one day?

    Hi,
    You can add an approval action( such as Start Approval Process) -> click "Approval" -> go to “Change the behavior of a single task” . Then you will
    see the "When Task expires" stage.
    You can have a look at the blog:
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx 
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers
    if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Eric Tao
    TechNet Community Support

Maybe you are looking for

  • How do i connect multiple devices to itunes

    I have multiple apple devices (3 Iphones and 5 ipods) to connect to Itunes.  I can't get Itunes to recognize the independent devices.

  • How do i change the zoom or size of my entire e-mail

    i use fire fox and suddenly my entire e-mail went very small and i know there is a way to enlarge the email print for 50% to 75% etc. i can't find how to get to that font how can i find the way to enlarge my entire e-mail == This happened == Just onc

  • I can't create an instance for BPF (BPC Netweaver 7.5)

    Hi experts: I am trying to create a Busines Process Flow. I am following steps according to the "how to" that explains the proccess. I firstly created the BPF template and, then, when I am creating an instance, identity dimensions are blank. Theorica

  • Is my iBook overheating??

    My iBook is only 5 mos. old, but yesterday (after surfing the net for a while) the fan came on (1st time I've noticed it kicking on). I shut down for a while to be safe. When I tried powering back on it did nothing- at all. I tried again, this time h

  • Getting a folder icon with a question mark in it when I start up...

    Hi Guys I know this isn't a Logic or music-related question, but I trust you guys so I'm asking it here rather than in one of the other Apple forums...! Sometimes when I start my 2 month old Mac Pro, I get a folder icon in the middle of the screen, w