Pages - How to get current date when opening a template!

I have a stationery template with the date on itl When the template opens can I get it to display the current date.. It so how is that done.

Yes, and the worst:
http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=424&sid=ba144f60f149 4f75c94316b0c7fbff2b&mforum=iworktipsntrick
If you had Pages previously it should be in your Applications > iWork folder.
Peter

Similar Messages

  • How to get current date for posting date

    hi,
    how to get current date for posting date ? any sample code ?
    Thanks

    Hi......
    Use
    Select getdate()
    for current date.......
    Regards,
    Rahul

  • How to Get Current Date from MS Access in a Select Statement

    From a java method, I want to use JDBC to get the current date from MS Access. In Oracle I would do "select sysdate from dual", but I can't figure out how to do it in MS Access. Here are some of my attempts. I have a table in my Access db called PARM.
    //        String sql = "SELECT '0', NOW() FROM PARM";
    //rs.next() is false
    //        String sql = "SELECT NOW() AS CURR_DT FROM PARM";
    //rs.next() is false
    //        String sql = "SELECT DATE() AS CURR_DT FROM PARM";
    //rs.next() is false
    //        String sql = "SELECT NOW()"; 
    //StringIndexOutOfBoundsException: String index out of range: -1
    //        String sql = "select { fn now() } from parm";
            String sql = "SELECT Date()";
    //java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            ResultSet rs = stmt.executeQuery(sql);
            if (rs.next()) {
                return rs.getString(1);
            } else {
                   return null;
              }

    Why are you getting it as a String? You should be getting it as a timestamp.
    Although getString works for me too. There is something else wrong that you haven't shown.
    Here is some shoddy, but simple, test code that demonstrates it working.
    import java.sql.*;
    public class Test{
      public static void main(String args[])throws Exception{
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        Connection c = DriverManager.getConnection("jdbc:odbc:stats");
        Statement s = c.createStatement();
        ResultSet rs = s.executeQuery("SELECT NOW()");
        while(rs.next()){
          System.out.println(rs.getTimestamp(1));     
        rs.close();
        s.close();
        c.close();
    }

  • How to get the data of Open Opportunities and Closed Opportunities

    Hi Guys,
      i'm studying about Sales Opportunities in SAP BusinessOne.
    i'm able to get the data about Sales Opportunities(i enterd), Opportunities Report and Lost Opportunities.
    But i dont know how to get information about Open Opportunities Reports and Closed Opportunitiesn Reports.i'm unable to find even their names of tables.
    plz send a reply.................
       with regards,
    santh

    Thanq Alexey for ur Helpful Answer,
       i'm aware about execution of a query in the Query Analyzer of SQL Server.but i dont know how to move to ShowDebugInformation Menu.
       can i find it in  the SAP Business One Tool. or do i need
    to check any data base help given by B1(Ex:- REFDB2004).
        plz give answer for  this also............
      with regards,
    santh

  • How to get current date in a specified format ?

    Hi,
    I want to get the current date (java.util.Date()) in the format yyyy-MM-dd HH:mm:ss.
    Can you please tell me as to how to get that ?
    Regards

    I have used the same and the code looks like this. But i am getting java.text.ParseException : UnParseable Date: "Fri Jul 11 13:29:43 CDT 2003"
    The Code is :
    java.util.Date sysDate = new java.util.Date();
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    String formatted_date = df.format(sysDate);
    It is erroring out in the last statement !!

  • How do get current date/time in GMT?

    Is there any way to get the current date and time in GMT (while my current locale is not GMT)?
    In Java I can do this:
    long currenttime = System.currentTimeMillis();
    java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy/MM/dd HH:mm:ss z");
    df.setTimeZone(java.util.TimeZone.getTimeZone("GMT"));
    java.util.Date date = new java.util.Date();
    date.setTime(currenttime);But, there seems to be no way to do the equivalent in BPEL in SOA Suite.
    I did some research and I think I could appy the XPath 2.0 function adjust-dateTime-to-timezone() to the current time, but that function is not available.
    Using SOA SUite 11.1.13.0.
    THanks.

    have you tried changing the stylesheet version in the xsl to 2.0 and then try the function again ?
    by changing this version it was possible to use newer functions, which weren't available in the designer

  • How to get location data when uploading from DSLR?

    I have read that you can't add or edit location data when files are added to Photos in the new Yosemite version.  But does the location still get added when you upload via a wireless connection like on the iPad?
    If not, is there a workaround?I have ended up with thousands of photos on the iMac with no location data as a result of the upgrade.  I don't want to make the problem worse. 
    Any help or advice appreciated.

    I'm not exacting sure what the difference between tagging and geotagging is.  I do know that at present on my ipad (and I haven't upgraded it from IOS7 yet), if I import my DSLR photos to the ipad, when in a wifi environment, it adds the location to the photos where they were uploaded.  Without wifi, no location gets added. I actually haven't figured out a way to add location data to the photos using the ipad, is there a way?  I have always been advised before to use my mac to do that, which is no longer possible in Yosemite as far as I can tell. 

  • How to get mail title when opening attached file

    Hello,
    I'm using thunderbird v15.0.1, and I would like to collect and sort all attached files I received along name of the email senders. I succeeded to plug my application to thunderbird which "on demand" is able to download the attached file in a generic location; Now I would like to sort these files along sender names and/or email subject. How can I retreive the name and/or the subject of the email when I open an attached file?
    BR,
    xkill31

    This is a user support forum, not a developer forum. have a look here for options http://www.mozilla.org/about/forums/#dev-apps-thunderbird

  • How to get accounting data when miro after saving?

    Hi,
         As subject. Because I want to print credit memo when miro after saving for transaction is credit memo and need to determine GL account and posting key. Then this data need to insert to add-on table for reprint using.
        Thanks a lot!!
    Best Regards,
    Nicole Chen
    Edited by: Nicole Chen on Mar 11, 2009 11:19 AM

    don't need its.

  • How to get current view name on clicking device back button?

    Hi,
    iam wriing a function for handling device back button(in android) press in my app.controller.js .How to get current viewname when clicking device back button.
    code samples will be helpful.
    my app.controller.js looks like below
    sap.ui.controller("com.opensap.App", {
      onInit : function() {
      document.addEventListener("deviceready", onDeviceReady, false);
      onBeforeShow : function(evt) {
      navButtonTap : function(evt) { 
    function onBackKeyDown(){
      //alert("hai");
      //sap.ui.getCore().byId("SalesDetail").app.backToPage("ProductList");
      //sap.ui.getCore().byId("ProductList").app.backToPage("Dashboard");
      //sap.ui.getCore().byId("SupplierDetail").app.backToPage("Dashboard");
    function onDeviceReady(){
       document.addEventListener("backbutton", onBackKeyDown, false);

    I somehow managed to find the solution
    function onBackKeyDown(){
      var app = sap.ui.getCore().byId("LoginDetail").app;
      app.back();

  • How to get current row data in table control

    Hi , expert ,
       I am professional in oracle ,  but  now I am a new guy in SAP ABAP .
    I  have a question in UI
    How to get current row data and click pushbutton  in table control  to open next screen ?
    I want to get the current data and open next screen to carry out detail detail .
    Thansk for all your suggestion .

    GET CURSOR LINE SY-CUROW .
      READ TABLE internal_table index SY-CUROW.

  • How do i get the date when enter a week number

    Hi, can anyone tell me how do i get the date when enter a week number??
    let say, i enter week number 4 and year 2008
    result=26-01-2008
    thanks..

    import java.util.Calendar;
    public class testCalendar {
         public static void main(String args[]){              
              int year=2008;
              int week =5;
              Calendar now=Calendar.getInstance();
              now.set(Calendar.YEAR,year);
    now.set(Calendar.WEEK_OF_YEAR,week);
              System.out.println(now.getTime());          
    hai, anyone know why i can't get the result:27-01-2008
    i always get two day later. That is 29-01-2008
    no wonder how i change the week number and year.
    for example: week=7, year=2007
    expected result:11-02-2007
    but the result is 13-02-2007
    thanks..
    Edited by: Angel_Wei on Sep 1, 2008 11:58 PM

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • How to get an email when data got inserted

    Hi All,
    Could you please let me know how to get an email when data got inserted into table by using sql/plsql
    Thanks in adavance

    Could you please let me know how to get an email when data got inserted into table by using sql/plsql
    Well that seems pretty straightforward - write some pl/sql to send you an email when that pl/sql inserts data into a table.
    See this Oracle-base article for an example of sending mail.
    http://www.oracle-base.com/articles/misc/email-from-oracle-plsql.php
    Post what you have tried so far. What part of what you have tried doesn't seem to be working?

  • Why does Firefox get hung up, when opening new pages? I've tried disabling plugins and extensions to no avail.

    Initially, when I open Firefox everything opens very quickly. However, after several minutes it gets hung up when opening new pages. I have close the browser and reopen it to start over. But each time it does the same thing. Works well at first then poops out. The trouble started yesterday. Before then, I never had any problems.
    I've tried disabling all the plugins and extensions, but it doesn't make any difference.

    Try to repair the disk permissions:
    * http://thexlab.com/faqs/repairprocess.html
    * http://support.apple.com/kb/HT2963 Troubleshooting permissions issues in Mac OS X

Maybe you are looking for

  • How do you list all VIs used in a sequence

    Is there a way of viewing all the VIs used in a sequence? Is there a script you can run and it outputs the VIs being used?

  • Is anybody experiencing odd UI font display in Illustrator 2014.1?

    Hi everyone. Updated to CC 2104.1 yesterday and everything works fine for me although I am seeing a little untidiness in the UI font. Only in Illustrator though, not in PS or ID - they are fine. It's as if the UI font has changed somehow and doesn't

  • My contacts do not appear in messages on Macbook

    I have all my contacts saved and there are in my Contacts on phone and laptop but when i am using Message on Macbook, the contacts do not appear on the side and its only there phone number.

  • Quicktime raise error after install ie7

    atfer install ie7, my quciktime can not run, open a error then quit. do I need reinstall it? Thanks.   Windows XP  

  • Speedup Weblogic Portal server

    I am running WLP 10.3.2 inside eclipse workbench on Linux OS. I have like 8GB RAM. But the server takes lot of time to start and publish. Is there any tips to increase the speed. Are there any recommended settings for Xms/xmx and max/min permsize set