Expire date help

Hello every one im making a system for my class where students register to this sytems but the expire date the teacher can select if their adtional training will last 15 days, 30 days or 60 days for this i have a table where i register the students, also i have a table where the teacher can add more times and a table of the extra courses or extra weekend class
example
table user
idU int 11 autoincrement primary key
name varchar 255 and so one with the rest
grade
login
pass
email
active
level
table times
idTime
name (example 15 days class)
amount (this is where i can add the amount of days)
table courses
idCourse
idU
idTime
CourseName
startdate
enddate
i got everything working readed allmost every post on this forums on interkat forums but i have not been able to make a trigger that the end date takes the Startdate and adds from the other table the amount of days to display to the students, your course starts "startdate" and the final exame for it is "enddate" any ideas how can i grab the variable from the table times?? Btw sorry my very bad english.

Hi, Miguel
actually i have experienced this process before with one of my best friends
"Steven Mark", he faced the same problem as i think but with hard work and sharing some ideas with me he at least found the solution, but i need you to read the full messages we shared to know how!
=====================================================================
First of all i would like to thank you for creating, showing and explaning how constuct a product expiration. I thought your instructions and images were very good and simple to follow (http://www.developer-online.com/multi_upload/tutorials/part2/produtcs_update.html).
I have followed your instuctions in creating something similar, although I have not created a days calculated field in the mysql database as i have used a recordset in dreamweaver to calculate the DATEDIFF(date_expired_pd, current_date) which creates the same but is not adding extra storage to my database.
My problem is that in your example the user defines the expiry date.
I would like to define the expiry date and not the user but also adding on any extra days that have not yet expired.
For example if a user had 2 days until expiry and i gave the opportunity to extend the expiry date for a further 30 days plus the 2 days which have not expired.
I have tried to maniuplate the custom trigger but im no expert on this.
If you at all have time please could you look at what i have done to the code you have created to determine what i am doing wrong.
==========
The code:
==========
$exp_timed = $_REQUEST['date_expired_pds'];
$query = .KT_DynamicData("{rs.DATEDIFF(date_expired_pd, current_date}");
$noDays = $query + $exp_timed;
$exp_time = time() + $tNG->getColumnValue("date_activated_pd") + (60 * 60 * 24 * $noDays);
$exp_date = KT_formatDate(date ("Y-m-d H:i:s",$exp_time));
$tNG->addColumn("date_expired_pd", "DATE_TYPE","EXPRESSION", $exp_date);
return $tNG->getError();
The problem line is $query = .KT_DynamicData("{rs.DATEDIFF(date_expired_pd, current_date}");
I have tried so many varions such as $query = $row_rs['DATEDIFF(flatshares_pd.date_expired_pd, current_date)'];
The custom trigger will not allow me to get the DATEDIFF from a recordset as there must be something im leaving out.
This one line of code is messing everthing up.
If i use a simple $query = "2"; to represent 2 days then it all works. But of course not everyone will have more or less than 2 days to add.
===================
Then he found this:
===================

Similar Messages

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Help with calculating expiration date

    Hi Microsoft Access community.
    I am trying to automatically set the expiration date in my table each time new data is entered which is +10 months -1 Day. My field name is called 'Best Before Date:', Data Type is called Date/Time, Format is set to 'Short Date' and under the Default
    Value field property I have two expressions I am trying to input.
    =DateAdd("m",10,Date())
    =DateAdd("y",-1,Date())
    These expressions work for me only when they are input separately. My issue is that I want to combine these two expressions but I don't know how.
    If anyone has any ideas of how to accomplish this task best please do help.
    Thanks
    sNiPel2

    They'll help you over here.
    http://answers.microsoft.com/en-us/office/forum/access?sort=lastreplydate&dir=desc&tab=Threads&status=&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&tm=1426425719481
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • On Hand QTY help with adding Lot and Expiration Date

    I need assistance with including the Lot Number and Expiration Date to the query below, can someone please help me with this.
    select mp.organization_code org_code
    , msi.segment1 item_code
    ,msi.description
    ,SUM (mmt.transaction_quantity) quantity
    ,mmt.subinventory_code
    ,msi.primary_uom_code  UOM
    from mtl_system_items_b msi
    , mtl_material_transactions mmt
    , mtl_parameters mp
    where msi.inventory_item_id = mmt.inventory_item_id
    and msi.organization_id = mmt.organization_id
    and mp.organization_id = mmt.organization_id
    and mp.organization_id = msi.organization_id
    and msi.organization_id = XX
    and mmt.subinventory_code = 'XXXX'
    group by msi.segment1
    ,msi.description
    ,mmt.subinventory_code
    ,msi.primary_uom_code
    ,mp.organization_code
    having SUM (mmt.transaction_quantity) >= 0
    order by 2;

    GKaiseril,
    Yes,
    I'm aware of JS API Reference disclaimer on page 277. I am executing it from folder level script. The script hasn't changed in 2 years and worked fine in Adobe versions 7.0 through 9.3.2. It stopped working when Adobe released version 9.3.3.
    I can make the script do nothing but
    this.closeDoc(true);
    so that there is no reference to the document after it closes. I still get a fatal error:
    Expected a dict Object
    Followed by Microsoft Error report
    Followed by:
    Runtime error!
    Program: C:\Program Files\Adobe\Reader9.0\Reader\Acrord32.exe
    R6025
    -pure virtual function call
    Then Reader closes.
    All our users have rolled back to Reader 9.3.2 and the problem went away.
    I don't believe it is related to the location of the method ...rather something Adobe changed between version 9.3.2 and 9.3.3.
    Cheers!
    Doug

  • How can I display the password expiration date for a user

    I have created a GUI (using PrimalForms) which runs powershel scripts to pull information like user ID, email address, last logon ec. for the helpdesk to help establish the validity of some user claims of "it worked yesterday" and the like.
    I have been asked to add the password expiration date, but I am struggling to get the code for this addition.
    Does anyone know how I can include this, and have it in a human readable format?
    The current scripts (there are 3) allow the helpdesk staff to search on user ID and display name, the third provides the last logon, it was impossible to include this in the other scripts so I added an extra search button and called it good. An example of
    these scripts is below (please note, PrimalForms needs a slightly different syntax in order to get the results displayed, but the core script is standard PS, I use Powershell 3.0)
    $results.Text=Get-ADUser -Filter "sAMAccountName -eq '$($EntryBox.text)'" -Properties DisplayName, sAMAccountName, mail, extensionattribute5, PasswordLastSet, PasswordExpired, PasswordNeverExpires, buMemberOf, telephoneNumber, msExchOmaAdminWirelessEnable, whenCreated, whenChanged, enabled, AccountExpirationDate | select givenName, surname, DisplayName, sAMAccountName, mail, extensionattribute5, PasswordLastSet, PasswordExpired, PasswordNeverExpires, buMemberOf, telephoneNumber, msExchOmaAdminWirelessEnable, whenCreated, whenChanged, enabled, AccountExpirationDate | Out-String
    $results.Focus()
    for info:
    $results.text is the window in the GUI results are displayed  in
    $entrybox.text is the text box the helpdesk staff use to input the user ID or display name of the account they are querying
    $results.focus simply tells the script to put the results in the results.text window
    The screenshot below shows the current setup, this is purely to put the above information into perspective. Obviously some of the information displayed has been removed/redacted along with our logo.

    Hi,
    Here's an example you can build from:
    $maxPasswordAge = 120
    Get-ADUser USER -Properties PasswordLastSet |
    Select SamAccountName,
    PasswordLastSet,
    @{N='PasswordLifeRemaining';E={$maxPasswordAge - ((Get-Date) - $_.PasswordLastSet).Days}},
    @{N='PasswordExpirationDate';E={(Get-Date $_.PasswordLastSet).AddDays($maxPasswordAge)}}
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Insert document expiration date in a Word template

    Hello all,
    I have a problem I hope anyone can help me with. I need to include a column in Document Library with the Document expiration date and after that, include that expiration date into the Word templates I have in that library.
    In order to do that, I created a date column (not a calculated one) called "ExpDate" with a default value of Today + 365 as I want the document to expire one year after its creation. After that, I edit the word templates I have associated to the
    document library so as to include the new "ExpDate" column as a Quick part.
    The problem I find is the following: When I create a new document based in the document templates (through content types), the user has the chance to insert an expiration date (as it is metadata) or leave it empty (the column is not defined as mandatory). If
    the user leaves the expiration date empty, the new column is filled with the default value (today + 365 days) but when I open the word document I see the name of the column [ExpDate] instead of the default value.
    Is there a way of forcing the document information panel to be filled with the default value?
    Do you imagine an alternative solution to the requirement of including the expiration date inside the document without having to be defined by the user?
    Thanks a lot.
    Regards.

    Wordsub.llb should be somewhere in your Labview folder on your local drive. The path to it in my install is: C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\addons\_office\_wordsub.llb
    Also what specific problem are you referring to about 17 bookmarks? Is that the limit on the express style VI for filling them in from LV? If so what you will need to do is to use the lower level function 'Word Insert Field' under Word Advanced VIs. You will need to supply the VI the name of the bookmark and the text you want to insert.

  • How to set the expiration date in content server

    Hi all,
    I wish to set the expiration date as 3 years later the current date. I have current Date in DocCreateDate but I am not able to set it as DocCreateDate + 3 years.
    Can anyone tell me how to set it?
    Any help appreciated..
    Thanks

    You will need to use an idocscript function, most likely in a global rule.
    One option could be dateCurrent, which can take a number of days to move it forward or back. See http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c08_config_ref.htm#i1053616

  • How do you set the expiration date of a secure zone?

    I am trying to set up a form where a user can sign up for access to a secure zone for 1 year. How do I set the expiration date of the secure zone for them to expire one year after they sign up for it?
    I have tried using a hidden field named "ZoneExpiry" (I have tried "ExpiryDate" as well) in the form and set its value attribute manually in the HTML (with the format 13-May-13), and the expiration date always ends up being 31-Dec-9999.
    Any help would be greatly appreciated.
    Thanks!

    I have done this.
    Have a hidden input field on form  <input name="ZoneExpiry" id="ExpiryDate" />
    Then have a function as follows:
    var dat=new Date();
                                                      dat.setDate(dat.getDate() + 365);
                                                      var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
                                                      var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();   
                                                      jQuery("#ExpiryDate").val(pretty);
    Hope this helps.

  • How to change the Live Bookmarks expiration date?

    When I open Firefox Brief will search for the most recent feeds. I noticed that when for some reason (like holidays) I do not open Firefox for some weeks I miss a lot of feeds. This is normal because Brief uses Live Bookmarks and it can't fetch what is no longer present in Live Bookmarks. Is there a way to force Live Bookmarks to extend the expiration date of the feeds?

    Firefox will reload the Live Bookmarks with every start by retrieving the XML file from the server. So items that are no longer in that list will disappear. AFAIK then that XML is not kept on the computer. I don't know how Brief works, but I assume that it works similarly.
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    # Shockwave Flash 10.0 r32
    # Java Plug-in 1.4.0_01 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Stock transfer are not showing correct expire date for Shelf life subcontracting

    Hi Gurus,
    We have shelf life active for PPDS. We had added 5 characteristic to have min and Max shelf life in APO so that data will be considered during pegging.
    Self life works perfectly fine for production plant where based on manufacture date min shelf life is considered.
    LOBM_APO_SL_MIN
    LOBM_APO_SL_MAX
    LOBM_APO_SL_UTC
    LOBM_VERAB
    LOBM_HSDAT
    Question is for sub contracting process stock or inventory date is giving back dated where when we run planning run stock is getting expired.
    Can any one help in getting stock correct expire date instead of 1982---- some thing like this.
    Thanks in advance
    Thanks & Regards,
    Rajesh Kumar

    When you plan subcontracting in SNP following is generated.
    Object                             Source                                   Destination
    Sub Con PR (Header)       Sub contractor                       Plant
    PR/STR (Child)                Plant                                     Subcontractor
    PR (Child)                       Child Mat Vendor                    Plant (or direct to Sub Contractor)
    Usually first and third items will get converted to Purchase orders and will vanish as and when Goods Receipts are posted against them.
    The second order may not get converted in SAP.  Tis will remain in the system.  But in the next planning run, these will be deleted if the quantities have been already fulfilled.
    Regards
    Nitin Thatte

  • Does JCE 1.2.2 make use of a certificate with an expiration date?

    Does JCE 1.2.2 make use of a certificate with an expiration
    date?
    If so, what's the date?

    The validation code which checked for certificate expiration was only found in JCE 1.2.1. It WAS REMOVED from JCE 1.2.2 and all successive releases like JCE in JDK 1.4.x and 5.x (and soon in 6.x). This expiration problem was the primary reason for releasing JCE 1.2.2 over three years ago. Export control regulations changed following the release of JCE 1.2.1, and Sun released 1.2.2 shortly thereafter so that customers wouldn't have this expiration problem.
    This change is documented as the first bullet in the change log for JCE 1.2.2, which is found both in the product distribution itself and on the following JCE product page:
    http://java.sun.com/products/jce/jce122_changes.html
    That said, JCE 1.2.2 is indeed signed with a certificate which is valid until October 2006, HOWEVER the JCE 1.2.2 and JCE in JDK 1.4.x/5.x code no longer checks that expiration date. All it cares about is that the code signature is valid.
    My understanding is that BOTH JDK 1.3.x and JCE 1.2.2 are slated for End-of-Life on March 30th, 2006, and will no longer be supported by Sun. Both should continue to work after that time, but will no longer be supported.
    I hope that helps clear the confusion.

  • How can I add the expiration date at line item level

    My User is selling voucher. The voucher is sell at line item. eg GV$5, GV$10,etc
    Each voucher line item sold need to be entered with a EXPIRATION date of that voucher.
    Maybe 3 months from issue, maybe 6months/1 year from issue.
    How can I add this to the sales order line item level?
    Which field can I used and how to configure?

    Hi Colin ,
       The question is not very clear , but i assume that you are asking about the  self expiry date of the particular material ,
    1. The setting you can do by activating  shelf life data  in material master :Plant data/stor1
    2.  its better to have a batch managed material for that you can sort the material acording the self expiry date.
    3. Once you maintain self expiry date system by default pick  the material at the time of  delivery
    Note-Shelf life expiry it will give the life of the material from the day of manfacture,remaining shelf life also will  give .
    Hope it is helpful
    Best regards
    Venkat

  • How to check the expired date of a public key stored in my keyStore

    Hello,
    I would like to know if there is any possibility to check the expiration date of a public key which is present in my keystore.
    I did read the help of keytool but did not found any explanation about that.
    Thanks in advance for your answers.
    Alain.
    Message was edited by:
    Philipina

    Public key doesn't have an expiration date. Certificate has. Run keytool -list -v and you can read something looks like:
    Valid from: ... until: ...

  • Treasury Memo Records - Expiration Date FF7B and FF63

    Hi,
    When I create a memo record in transaction FF63, or directly in transaction FF7B, the expiration date that I insert has no meaning in the cash management and forecast report. That is, even after the expiration date, when I analyze my forecast the memo records do not disappear. The value remains in the report, which means that we must archive or delete the memo record mannualy.
    How can I make the memo record disappear automatically in the expiration date?
    Can you help, please?
    Best regards,
    Lénia

    Chaikaru,
    I understand the setting in the archival type where you can say how long it can stay in the system. But in our situation we cannot wait until 6 months to archive the memo records.
    We get current day bank statements, mutiple times during the day. We get it at 8.00 AM, 10.00 AM, 12.00 Noon and 1.00 PM. These are uploaded into SAP and Memo records are created. These memo records are displayed in FF7A to view the cash position.
    The cash manager comes in at 8.00 AM into the office and runs FF7A. Based on this report, they take their investment decisions and enter into transaction with counterparties.
    The next statement comes at 10.00 AM. We first archive all the memo records created at 8.00 AM using FF6A, uplaod the new statement received at 10.00 AM using FF_5, create memo records using FPS3. Then when we run FF7A we get the latest cash position report. Based on this report, the Cash Manager makes adjustment to the investment decision he made at 8.00 AM. This process goes on until 1.00 PM.  If we don't archive every 2 hours, there will be double counting inthe FF7A report.
    So even though the Archival type says you can archive after 6 months or 12 months, we cannot keep the records for more than 2 hours in the system, We archive it every two hour or as the new statement comes in.
    IN this situation, how can you get a past dated cash position report? Can we retrieve the memo records from archive and run the report for a specific date in the past?
    Thanks
    Kalyan

  • Vb6 Expiring Date

    please am doing my project and i need some help in vb6
    i need sql statement that will list all product that will expire within 60days based on their expiring date.
    this is my code, kindl help me
    Adodc6.RecordSource = "Select * from tblproduct where Expdate <= '" & Now.AddMonths(3) & "'"
     thank you
    Thanks In Advan

    Hi,
    Since this is a Visio forum, if you want to receive more information about SQL code, I recommend you post this problem in SQL forum.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for