Insert Date & Time question
Does anyone know if there is a way to DESELECT the "Automatically update the date and time when the document is opened" dialog?
Thanks.
Paul
The only way I can see is to create your own template with this unchecked. Then, when you open this template, auto date & time should be unchecked.
It would be nice if this were a global preference. I suggest you leave feedback for the Pages team.
Similar Messages
-
Inserting Date & Time in picture
Hi,
I am new to Adobe, after strugling to get iMovie to produce a decent HD movie, I am delighted with Premiere Elements 9 so far. I am, however, asking for help and assistance in trying to insert the date & time (that the footage was shot) into text on the screen. iMovie had this function which was very useful for home movies, but I cannot find this option? Also, I have run a test video and have found a sound/video sync problem. I am not running anti-virus software as I have a MAC and the saved movie is being exported to an external HDD through firewire. Any help would be very much appreciated!
Thanks
JohnJohn,
Welcome to the forum.
PrE does not have a direct way to do this, however, you can create a Title, and manually add the time/date as text.
There is a program, DVDate, that might prove to be helpful, though it's not a plug-in for PrE, so there is still some additonal work in the normal workflow.
Good luck,
Hunt -
Inserting date & time in Word 2008 document
I'm trying to create simple AppleScript and I'm hoping someone on here can help me.
I work in Word 2008 for Mac and want to create a script that simply inserts the phrase "Left message(space)" plus the date and time whenever I run the script. I'd also prefer that the phrase be in italics if possible. I use this because I often call people and leave them a message and I like to keep a record of when I call them.
I found this script online and modified it hoping it would meet my needs:
tell application "Microsoft Word"
tell selection
type text text "Left message "
create new field text range text object of selection field text {"DATE \\@ \"MM/d/yyyy\""}
end tell
end tell
The result is that when I run the script, I get something like this in my document:
Left message 6/10/2010
It's a good start, but there are two problems with this.
First, I would like to insert both the date AND the time.
Second, when it inserts the date, it makes it an "update automatically" date that updates to the current time every time I open the document. This obviously doesn't help me keep a record of when I made a call. What I would like is for it to just insert the current date and time without updating automatically.
Third, if possible, I would also like it to be in italics.
It would look something like this:
+Left message 6/10/10 5:29 PM+
I appreciate any advice people can give.
Message was edited by: LJH_CMHSecond, when it inserts the date, it makes it an "update automatically" date that updates to the current time every time I open the document
Sure, that's because you specifically tell it to. Your script inserts a 'new field' which is analogous to Word's dynamic text objects (date, time, page number, etc.)
Instead, what you want to do is insert an actual string of characters - sure, to you and I that string of characters might look like a date and time, but to Word it's nothing more than a series of characters.
For that we can fall back on AppleScript's date features, specifically current date, like:
tell application "Microsoft Word"
tell selection
type text text "Left message " & (current date as text)
end tell
end tell
Note that current date as text returns a rather verbose form of the date. If that's too much for you there are alternate options, such as:
short date string of (current date) & space & time string of (current date)
which will look more like: "6/10/10 3:26:50 PM"
But there is also a myriad of other ways (with seconds, without seconds, 12/24 hr, etc.) depending on what you want.
Third, if possible, I would also like it to be in italics.
I'll have to look at that one, unless someone else beats me to it. -
Insert date time into oracle database from jsp
pls tell me ,from jsp how can I insert datetime values into oracle database .I am using oracle 9i .here is codethat i have tried
html--code
<select name="date">
<option selected>dd</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<select name="month">
<option selected>dd</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
<select name="year">
<option selected>dd</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
</select>
here the jsp code
<% date= request.getParameter("date"); %>
<% month= request.getParameter("month"); %>
<% year= request.getParameter("year"); %>
try
{ Class.forName("oracle.jdbc.driver.OracleDriver"); }
catch (ClassNotFoundException exception)
try
Connection connection = null;
out.println("connectiong the database");
connection = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcsid","scott","tiger");
out.println("connection getted");
int rows = 0;
String query_2 = "insert into mrdetails values(?)";
String dob = date+month+year;
prepstat = connection.prepareStatement(query_2);
prepstat.setTimestamp(4,dob);
rows = prepstat.executeUpdate();
out.println("data updated");
catch (Exception exception3)
out.println("Exception raised"+exception3.toString());
}To insert date values into a database, you should use java.sql.Date. If it also has a time component, then java.sql.TimeStamp.
Your use of prepared statements is good.
You just need to convert the parameters into a date.
One way to do this is using java.text.SimpleDateFormat.
int rows = 0;
String query_2 = "insert into mrdetails values(?)";
String dob = date+"/" + month+ "/" + year;
SimpleDateFormat sdf = new SImpleDateFormat("dd/MM/yyyy");
java.util.Date javaDate = sdf.parse(dob);
java.sql.Date sqlDate = new java.sql.Date(javaDate .getTime);
prepstat = connection.prepareStatement(query_2);
prepstat.setTimestamp(4,sqlDate);
rows = prepstat.executeUpdate();
out.println("data updated");Cheers,
evnafets -
hi
I am using
INSERT INTO LIB_BOOK_ISSUE (ISSUE_DATE, AC_NO) SELECT ISSUE_DATE, AC_NO FROM LIB_BOOK_ISSUE5
to move data from LIB_BOOK_ISSUE5 to LIB_BOOK_ISSUE.
ISSUE_DATE has Date/Time valuse. When I use above INSERT statement then just Dates are inserted into LIB_BOOK_ISSUE. Plz write me the query so that both Date/Time values move.
Thankscolumn ISSUE_DATE and AC_NO both play as primary key.
if i use
insert into LIB_BOOK_ISSUE select * from LIB_BOOK_ISSUE5;
then there is an error that unique value violated. thats why i think that if time value is not copying to LIB_BOOK_ISSUE5 then there may be unique key violation, elese there is no way that there is any key violation -
How to insert date/time to sql database
Hi,
I would like to insert date and time alongside with my data receiving from the sensor.
Right now i can insert data into sql table everytime when the data changes but i also wanted to insert the date and time as well.
Thank you in advance!I create a field that is a datetime and set the default value to getdate(). So everytime i make an entry into this database, it automatically adds a datestamp.
-
Hi, I'm a new Java programmer.
I need to format a date/time variable from sql server into two string objects. One string object storing the date and the other storing the time.
I've tried using the Date class and DateFormat class, but I haven't found a way yet.
Can anyone help me?
Thanks a lot,
louisYou could try something like this:
Date dateAndTime = /* read date from sql server */;
DateFormat dateOnly = new SimpleDateFormat("yyyy-MM-dd");
DateFormat timeOnly = new SimpleDateFormat("HH:mm:ss");
String dateString = dateOnly.format(dateAndTime);
String timeString = timeOnly.format(dateAndTime); -
Problem while inserting Date/Time in Oracle Database
Hai,
i want to insert the date and time in a date column. here, i am using java.sql.Date and java.sql.Time to assign the date in Prepared Statement.
PreparedStatement psmt=con.prepareStatement("insert into test(ex_date) values(?)");
java.util.Calendar c=Calendar.getInstance();
c.set(2002,2,21,10,10,00);
java.sql.Date d=new Date(c.getTime().getTime());
java.sql.Time t=new Time(c.getTime().getTime());
psmt.clearParameters();
psmt.setDate(1,d);
psmt.setDate(1,t);
psmt.executeUpdate();
Above program is inserted the Date and time in the database as the following "1900/2/21 10:10 AM"
but i am giving the year as 2002. it inserted the year as 1900. what is the problem with the code?
please let me know
Thanks in advance.
Regards
sankarjune14Hai Franco,
i put the wrong code. Here, is the Original Code.
PreparedStatement psmt=con.prepareStatement("insert into test(ex_date) values(?)");
java.util.Calendar c=Calendar.getInstance();
c.set(2002,2,21,10,10,00);
java.sql.Date d=new Date(c.getTime().getTime());
java.sql.Time t=new Time(c.getTime().getTime());
psmt.clearParameters();
psmt.setDate(1,d);
psmt.setTime(1,t); // Last time i put psmt.setDate(1,t);
psmt.executeUpdate();
and, the getTimeInMillis() method is a protected method in java.util.Calendar class. how can we use it
please give me some other idea to insert the date and time in oracle database.
Thanks in advance
sankarjune14 -
Another DATE/TIME question
HI all
I am trying to INSERT INTO TABLE a date and time into one line..
excerpt looks like
CREATE TABLE Test
(Submit DATE );
INSERT INTO Test
VALUES(to_date('2001-01-02 22:23:00','yyyy-mm-ss hh24:mi:ss'));
I get an error message that says it's missing a comma (and I can't figure out WHERE). I have tried quotes in different places etc...Is it not possible to put a date and a time in the same slot?
Thanks in advanceTry this...
SQL> create table mytest (submitted date);
Table created.
SQL> desc mytest
Name Null? Type
SUBMITTED DATE
SQL> insert into mytest
2 (SUBMITTED)
3 values
4 (to_date('2001-01-02 22:23:00','yyyy-mm-dd hh24:mi:ss'));
1 row created.
SQL> select * from mytest;
SUBMITTED
02-JAN-01
HI all
I am trying to INSERT INTO TABLE a date and time into one line..
excerpt looks like
CREATE TABLE Test
(Submit DATE );
INSERT INTO Test
VALUES(to_date('2001-01-02 22:23:00','yyyy-mm-ss hh24:mi:ss'));
I get an error message that says it's missing a comma (and I can't figure out WHERE). I have tried quotes in different places etc...Is it not possible to put a date and a time in the same slot?
Thanks in advance -
Font problem after inserting date/time.
Can anyone help me with this problem? I write a daily journal in Times New Roman, 18 pt. However, when I have it insert the date and time it inserts it fine as TNR 18. But if I type the very next character it is TNR 10 pt. How do I prevent this?
Thanks.
PaulPaul, did you by chance change the Body text Paragraph Style to TNR 18? Or is it still set to 10?
If it is set to 10 then while the Date and Time are going to be 18, Pages is reverting back to the normal Body paragraph Style, which is probably 10.
You can get around this by changing your body style, or making a new one called "Entries" which is set to 18. -
db = XE
I have imported the exif data from some images into an oracle table. I now want to insert the data into some other tables.
I am having difficulty with the date and time data.
The exif export contains the date and time like this;
2011:11:30 18:19:56
I have attempted to insert the data using the following sql;
INSERT ALL
INTO exif VALUES (exif)
SELECT to_date(createdate,'YYYY/MM/DD HH24:MI:SS')
FROM metadata;But it returns the following error;
Error starting at line 13 in command:
INSERT ALL
INTO exif VALUES (exif)
SELECT to_date(createdate,'YYYY/MM/DD HH24:MI:SS')
FROM metadata
Error at Command Line:14 Column:20
Error report:
SQL Error: ORA-00904: "EXIF": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:I created a table like this;
CREATE TABLE exif
exif DATE
);Could someone tell me what the problem is?
Cheers
Ben
Edited by: benton on Dec 7, 2011 3:31 PM
Edited by: benton on Dec 7, 2011 3:32 PM1 CREATE TABLE exif1
2 (
3 exif DATE
4* )
SQL>
SQL> /
Table created.
SQL> INSERT ALL
INTO exif1(exif)
SELECT to_date(SYSDATE,'YYYY/MM/DD HH24:MI:SS')
FROM dual
SQL> /
1 row created.
SQL> INSERT ALL
INTO exif1(exif)
SELECT to_date(SYSDATE+level,'YYYY/MM/DD HH24:MI:SS')
FROM dual
connect by level <=10
10 rows created. -
Date + Time question updating to a DATE field..
Hi,
I'm going crazy...
MEETING_DATE is a DATE column in the DB
:P40_MEETING_DATE is a TEXT FIELD with source MEETING_DATE
:P40_MEETING_DATE:=to_char(to_date('02-OCT-2006 09:14:45 PM','DD-MON-YYYY HH:MI:SS PM'),'DD-MON-YYYY HH24:MI:SS');
Ultimately I need to have :P40_MEETING_DATE a date picker and then
add a character string of a time to it.
:P40_MEETING_DATE:=to_date(to_char(:P40_MEETING_DATE,'date picker format?')||' '||:P40_START_TIME,'date picker format?');
I get all kinds of errors ORA-01858 errors.. non- numeric errors.. invalid month errors..
BillYou are right, sorry about that.
I thought about sneaking a On Submit - After Computations and Validations process in there before the Process Row process like this:
:P216_X := TO_DATE( TRUNC( TO_DATE( :P216_X, 'DD-MON-YY HH24:MI' ) ) || ' ' || :P216_TIME, 'DD-MON-YY HH24:MI' );but that's probably the same thing you tried before.
I would just turn it into a procedure and pass the parameters...;)
I hope someone can get your going in the right direction.
chet -
ok so I can print out the date and time when i run the program.
How would I write a method that updated the clock every second, kinda like a digital watch. would I just use a while loop? or does java have an actual running clock?
Here is the code I have so far:
import java.util.Date;
public class DateTime
Date now = new Date();
public DateTime()
System.out.println(now);
public static void main(String[] args)
DateTime run = new DateTime();
}import java.util.Date;
public class DateTime
Date now = new Date();
public DateTime()
{while(true){
System.out.println(now);now = new Date();
Thread.sleep(1000);
public static void main(String[] args)
DateTime run = new DateTime();
I modified your code a bit better do this in a different thread though if you plan to use a GUI -
Newbie: Date time question
I want to store a date and time into the same column. But I do not know the syntax to do it and to select it.
Can anyone help me?Oracle should store this anyway - all you need to do to see this is to set the nls_date_format for the session you are using to 'DD-MON-YYYY HH24:MI:SS'
GR -
Date/Time Question - Milliseconds
How can I get the number of milliseconds after the 1970... from a date?
Is there such a method in the API? I looked at the DateFormat and NumberFormat classes but I didn't find it... Is there a way a to do this?
I want to be able to give a date and get back the number of milliseconds past the 1970 thing...
ThanxDrClap has a good solution. Here is another twist:
// Do this
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
Date start = formatter.parse("01/01/1970");
// Or do this
Calendar calendar = Calendar.getInstance();
Calendar.set(1970, Calendar.JANUARY, 1);
Date start = calendar.getTime();
return (new Date().getTime() - start.getTime());- Saish
Maybe you are looking for
-
How to change the field size cache/buffer in a query
I query a field from sql developer, the field is cases_history, it resides in a data mart in the global network of our company. this field is big in size, it stores logs in a sequential way, so field size increases a lot. when i query it and try a "s
-
Video Stutters in Sequence - Help needed ASAP!
I have a video shot at 24FPS in Quicktime format. Plays back fine in my preview pane but on the canvas it stutters between cuts. No effects were added. At the last second of a clip the frame holds and then jumps ahead to the next clip. This happens w
-
Disk is too full to update...
Hello, Following installing the new update I encountered a problem with the progress bar stopping 1/4 of the way and staying like that. After looking at the Disk Utility I have found that I only have 18.9MB available which I don't understand but anyw
-
Dear Experts, Is there any way to release requests on a mass basis? I have a list of requests(100) which have to be released on a mass basis and then transported. Is there any way to do it? Thanks and Regards, Ravi Bhatnagar
-
Disk Activity Problem w/ "update" Process
I'm having problems with unusal spikes in disk activity which causes everything I'm doing to pause until the activity is finished. If I'm browsing or switching between folders the app and OS pauses, if I'm watching a video, the video will pause while