How to insert current date
I'm working on a bulletin template and would like to have a text box with the current date automatically generated and placed in it. Is this possible? If so, how do I go about doing this?
Type>Text Variables>Modification or Output Date
You can modify the variable by editing it
MMMM YY for June 10 etc
Modification date will change when you save the document (F5 to refresh)
Output will change on output of the file.
Similar Messages
-
Please help! Looking for script to insert current date on page.
I currently use a Dreamweaver Extension that lets you insert
current date and time on your web page.
The problem is, I don't know Javascript and cannot edit the
Javascript codes to "remove the time"
I only need the current date that will change every day.
Do you know where I can get this script, I goggled and got
several but I'm looking for something authentic.
Also is it possible to have your page validate when you use
Javascript embedded in your HTML?
Thanks everyone,
Patrickquote:
Originally posted by:
Newsgroup User
Webethics wrote:
> The problem is, I don't know Javascript and cannot edit
the Javascript codes
> to "remove the time"
> I only need the current date that will change every day.
JavaScript generates the date by using the clock on the
computer of each
visitor to your site. If a visitor's clock has the wrong
date, your site
will also display the wrong date.
> Do you know where I can get this script, I goggled and
got several but I'm
> looking for something authentic.
I don't know what you mean by "authentic". Date generation in
JavaScript
is one of the most basic features of the language, so if it
works, it's
"authentic".
> Also is it possible to have your page validate when you
use Javascript
> embedded in your HTML?
Yes, but you shouldn't embed JavaScript in XHTML.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
So mr. Powers are there people that use Javascript Date in
their page?
Would you recommend it?
I could use PHP but I don't know PHP,
How do I come up with the string in this format, say,
Wednesday, October 29th, 2008 that will change to a new day
according to the server time and date.
Thanks so much for your help and I have two of your books! I
will be taking PHP classes in December.
Patrick -
Insert Current Date into text Field
Hi I was wondering if anyone knows how to insert the current
date into a text field using ASP.NET C# page. When the page loads.
Or better still insert current date into my database when the
page is updated. using the insert Server behavier.
I would be very greatfull for any help.To assign it to a text box you couls use the following in the
onload
function
textbox.Text = DateTime.Now.toString;
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"cantmakeitwork" <[email protected]> wrote
in message
news:e9qhrv$crd$[email protected]..
> Hi I was wondering if anyone knows how to insert the
current date into a
> text
> field using ASP.NET C# page. When the page loads.
>
> Or better still insert current date into my database
when the page is
> updated.
> using the insert Server behavier.
>
> I would be very greatfull for any help.
> -
Insert current date in ASP date/time field
I am trying to create an INSERT record in a database with a
field for the current date. I cannot fimd how to insert the date in
the field by using a default entry or SQL statement. How can I do
this using Dreamweaver for ASP pages? Thanks, JoeFor database server time, use GETDATE or CURRENT_TIMESTAMP in
your query.
For web server time, pass the value from Date() or Now().
"talk2perry" <[email protected]> wrote in
message
news:f4s2i1$3bu$[email protected]..
>I am trying to create an INSERT record in a database with
a field for the
> current date. I cannot fimd how to insert the date in
the field by using a
> default entry or SQL statement. How can I do this using
Dreamweaver for
> ASP
> pages? Thanks, Joe
> -
How to insert the data from XML to a table
Hi,
I'm using Oracle 10g Express Edition
I need help in How to insert the data from XML file into the table.
Below is the example i'm working on..
I have create ridb user with below mentioned privileges:
Account Status Locked Unlocked
Default Tablespace: USERS
Temporary Tablespace: TEMP
User Privileges :
Roles:
CONNECT
RESOURCE
Direct Grant System Privileges:
CREATE DATABASE LINK
CREATE MATERIALIZED VIEW
CREATE PROCEDURE
CREATE PUBLIC SYNONYM
CREATE ROLE
CREATE SEQUENCE
CREATE SYNONYM
CREATE TABLE
CREATE TRIGGER
CREATE TYPE
CREATE VIEW
& table is created TRIALZIPCODES below mentioned is the DDL:
CREATE TABLE TRIALZIPCODES
STATE_ABBR VARCHAR2(20) NOT NULL
, ZIP_CODE NUMBER(10, 0) NOT NULL
, ZIP_CODE_EXT VARCHAR2(20)
Below is the XML FILE: which is stored in C:\OracleProject Folder
File name: trial.xml
<?xml version="1.0" ?>
<metadata>
- <Zipcodes>
- <mappings Record="4">
<STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
<ZIPCODE>94301</ZIPCODE>
</mappings>
- <mappings Record="5">
<STATE_ABBREVIATION>CO</STATE_ABBREVIATION>
<ZIPCODE>80323</ZIPCODE>
<ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
</mappings>
</Zipcodes>
</metadata>
PL/SQL Procedure:which i'm trying to execute from SQLDeveloper
create or replace
PROCEDURE TRIAL AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
begin
-- DBMS_XMLGEN.setRowTag ( ctx IN ctxHandle, rowTag IN VARCHAR2);
-- DBMS_XMLGEN.setRowSetTag ( ctx IN ctxHandle, rowSetTag IN VARCHAR2);
-- the name of the table as specified in our DTD
DBMS_XMLGEN.SETROWSETTAG(l_context_handle,'zipcodes');
-- the name of the data set as specified in our DTD
DBMS_xmlgen.setRowTag(l_context_handle,'mappings');
-- for getting the output on the screen
dbms_output.enable(1000000);
-- open the XML document in read only mode
v_FileHandle := utl_file.fopen('c:/OracleProject','trial.xml', 'r');
loop
BEGIN
utl_file.get_line(v_FileHandle, charString);
exception
when no_data_found then
utl_file.fclose(v_FileHandle);
exit;
END;
dbms_output.put_line(charString);
if finalStr is not null then
finalStr := finalStr || charString;
else
finalStr := charString;
end if;
end loop;
-- for inserting the XML data into the table
insCtx := DBMS_XMLSTORE.NEWCONTEXT('RIDB.TRIALZIPCODES');
insCtx := DBMS_XMLSTORE.INSERTXML(insCtx, finalStr);
dbms_output.put_line('INSERT DONE '||TO_CHAR(rowsp));
DBMS_XMLStore.closeContext(insCtx);
END;
END TRIAL;
For the first time when i complied i got the errors as :
Procedure RIDB.PROCEDURE1@RIDB
Error(16,14): PLS-00201: identifier 'UTL_FILE' must be declared
Error(16,14): PL/SQL: Item ignored
Error(29,1): PLS-00320: the declaration of the type of this expression is incomplete or malformed
Error(29,1): PL/SQL: Statement ignored
Error(33,1): PL/SQL: Statement ignored
Error(33,19): PLS-00320: the declaration of the type of this expression is incomplete or malformed
Error(36,1): PL/SQL: Statement ignored
Error(36,17): PLS-00320: the declaration of the type of this expression is incomplete or malformed
So i logged in as sys & grant the permission to execute on UTL_FILE to ridb (user):
SQL Statement:
grant execute on utl_file to ridb
So, it got compiled successfully but when i execute it gives me error as:
Source does not have a runnable target.
What does this mean?
So I browse through forum & i got to know that i need to initial the UTL_FILE_DIR ="C:/OracleProject" in init.ora
So can i edit the init.ora with notepad.When i tried to do that it says permission denied
In my system it shows the init.ora file in path C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts
but there is also other file initXETemp in the same path do i need to do the changes in it.
I have tried even editing the SPFILE as mentioned below:
C:\oraclexe\app\oracle\product\10.2.0\server\dbs\SPFILEEXE - I had edit this file using notepad & set the value of UTL_FILE_DIR ="C:/OracleProject". So next time when i restarted i'm unable to log on to the database.
So i had reinstall the software again.
Could you please let me know how to proceed..hi,
I have created the directory from sys database
CREATE or replace DIRECTORY XML_DIR2 AS 'C:\OracleProject';
& grant read,write access to the user
grant read,write on directory XML_DIR2 to RIDB;
& i had change the tag name in the xml file as shown below:
<?xml version = '1.0'?>
<metadata>
<Zipcodes>
<mappings Record="4">
<STABBRE>CA</STABBRE>
<ZIPCODE>94301</ZIPCODE>
</mappings>
<mappings Record="5">
<STABBRE>CO</STABBRE>
<ZIPCODE>80323</ZIPCODE>
<ZIPCODEEXT>9277</ZIPCODEEXT>
</mappings>
</Zipcodes>
</metadata>
TRIALZIPCODE table as shown below:
CREATE TABLE "RIDB"."TRIALZIPCODE"
( "STABBRE" VARCHAR2(20 BYTE),
"ZIPCODE" NUMBER(*,6) NOT NULL ENABLE,
"ZIPCODEEXT" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
I have tried two methods as shown below:
Procedure 1:
create or replace
PROCEDURE TRIAL_V2 AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
cnt NUMBER;
xmldoc xmltype := xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') );
--XML_DIR VARCHAR2(40) := 'C:\\OracleProject';
BEGIN
insCtx := DBMS_XMLStore.newContext('DEV.TRIALZIPCODES');
DBMS_XMLStore.setUpdateColumn(insCtx, 'STABBRE');
DBMS_XMLStore.setUpdateColumn(insCtx, 'ZIPCODE');
DBMS_XMLStore.setUpdatecolumn(insCtx, 'ZIPCODEEXT');
DBMS_XMLStore.setRowTag(insCtx, 'mappings');
cnt := DBMS_XMLStore.insertXML(insCtx, xmldoc);
DBMS_XMLStore.closeContext(insCtx);
END;
Procedure 1 was compiled with out errors but when i execute i got the error as :
Source does not have a runnable target.
Procedure 2_
CREATE OR REPLACE PROCEDURE TRIAL_V3 AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
cnt NUMBER;
xmldoc xmltype := xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') );
--XML_DIR VARCHAR2(40) := 'C:\\OracleProject';
BEGIN
INSERT INTO trialzipcode (STABBRE, ZIPCODE, ZIPCODEEXT)
SELECT extractvalue(x.column_value, 'mappings/STABBRE'),
extractvalue(x.column_value, 'mappings/ZIPCODE'),
extractvalue(x.column_value, 'mappings/ZIPCODEEXT')
FROM TABLE(
XMLSequence(
EXTRACT(
xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') ),
'metadata/Zipcodes/mappings'
) x
END;
END TRIAL_V3;
Procedure 2 was complied without errors but when i execute i got the error as:
Connecting to the database RIDB.
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "SYS.XMLTYPE", line 287
ORA-06512: at "RIDB.TRIAL_V3", line 12
ORA-06512: at line 2
Process exited.
Disconnecting from the database RIDB.
Could you please let me know how to proceed... -
SQL Loader-How to insert -ve & date values from flat text file into coloumn
Question: How to insert -ve & date values from flat text file into coloumns in a table.
Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
How to load such values in columns of database using SQL Loader?
Please guide.Question: How to insert -ve & date values from flat text file into coloumns in a table.
Explanation: In the text file, the negative values are like -10201.30 or 15317.10- and the date values are as DDMMYYYY (like 10052001 for 10th May, 2002).
How to load such values in columns of database using SQL Loader?
Please guide. Try something like
someDate DATE 'DDMMYYYY'
someNumber1 "TO_NUMBER ('s99999999.00')"
someNumber2 "TO_NUMBER ('99999999.00s')"Good luck,
Eric Kamradt -
How to view current date and time on SAP screen
Hi Everybody,
How to view current date and time on SAP screen .I have set time zone in T-code STZAC.now iam getting correct date n time in my tranctions but i want to check without any tractions
Plz repay,Regards,
Sadik.Hi,
You can check the time by running a report .
It will show the database and central instance time : Report name :rsdbtime
Thanks and Regards
Vijay kumar G
Edited by: vijay kumar gopal on Mar 4, 2008 1:09 PM -
How to display current date in query header?
Hi,
How to display current date in query header?
I use Query Designer for development.
Thanks,
Arun KKHi Arun,
You can define fixed header lines and footer lines so that when you generate the query list, they can receive current values of certain fields. When you define a header line or a footer line, you must specify a character string of the type &field, where field is the short name of a field.
This function allows you (for example) to place a sort criterion in the header line.
You can include the following fields as variables in the headers directly:
%NAME
Name of the user processing the query
%DATE
Current date
%TIME
Current time
%PAGE
Current page number (6 characters)
%P
Current page number (3 characters)
These fields can be used in the short forms N,D,T and P. If you want to use these letters as short names for query fields, the field values from the query are used.
You can also see the link
[http://help.sap.com/saphelp_nw70/helpdata/EN/6e/dd68721faf11d6b1d500508b6b8b11/frameset.htm]
Regards,
NR -
How to get current date for posting date
hi,
how to get current date for posting date ? any sample code ?
ThanksHi......
Use
Select getdate()
for current date.......
Regards,
Rahul -
As of version 31, why is there still no Thunderbird option to QUICKLY insert current date and time in message that you are writing?
Literally have seen this very-much-needed -- and used -- option "promised" for three years now, and even if there's only one or two formats that could be used, at least the option is there.
It seems only way is to link a Macro and tool to Thunderbird and do it that way.
Joe Rotello
[email protected]
Skype: joerotelloWhere was it promised? A quick search of Bugzilla didn't find a functionality request bug report for it.
I assume you're aware that Mozilla stopped development about 2 years ago (just adds security/stability fixes and provides infrastructure) and all new features and bug fixes are now added by the community. They seem pretty tied up with bug fixes and reworking some hard to maintain components such as the MIME support.
Have you tried the Timestamp add-on at https://addons.mozilla.org/en-us/thunderbird/addon/timestamp/ ? The version at AMO doesn't support versions later than 2.0 so you'd need to do something like install the disable add-on compatibility checks add-on at https://addons.mozilla.org/en-us/thunderbird/addon/checkcompatibility/?src=ss, and ignore the warning message about Timestamp not being compatible. However, the author has a version at http://extensions.sanjer.nl/?page=tb_ts that supposedly supports up to Thunderbird 11.9.x so it should be "compatible by default as it supports version 5 or later and is not a binary add-on like Lightning or Enigmail.
"For Thunderbird use the context menu (right click popup) in the compose window, Ctrl+Shift+T or "Options | Insert timestamp" to inserts the date/time into a message" -
How to insert Legacy data into QP_RLTD_MODIFIERS table?
How to insert Legacy data into QP_RLTD_MODIFIERS table in R12 instance.
I would use the API QP_Modifiers_PUB.Process_Modifiers for pushing legacy pricing data into R12. QP_RLTD_MODIFIERS is only used for certain types of discounts (in my prod environnment, only promos have data in this table).
-
How to insert the data using matrix
Hi
All how to insert the data using matrix feild
plz help me
thanks
LoyHi Loy,
The best way to fill an entire matrix is to use a DBDatasource, here is some sample code:
Dim oForm As SAPbouiCOM.Form
oForm = SBO_App.Forms.Item("YourFormTypeID")
'1. Add a DBDataSource to the form
oForm.DataSources.DBDataSources.Add("OUSR")
Dim oColumnDBS As SAPbouiCOM.Column
Dim oColumnUDS As SAPbouiCOM.Column
Dim i As Integer
Dim GenEdt As SAPbouiCOM.EditText
Dim oMatrix As SAPbouiCOM.Matrix
Dim oColumns As SAPbouiCOM.Columns
Dim oDBDataSource As SAPbouiCOM.DBDataSource
oMatrix = oForm.Items.Item("7").Specific
oColumns = oMatrix.Columns
'2. DBDataSource: Binding a field / alias of the table to a column
oColumnDBS = oColumns.Item("V_1")
oColumnDBS.DataBind.SetBound(True, "OUSR", "U_NAME")
'3. getting the data sources bound to the form
oDBDataSource = oForm.DataSources.DBDataSources.Item("OUSR")
oMatrix.Clear()
' Querying the DB Data source
oDBDataSource.Query()
' Adding the data to the matrix
oMatrix.LoadFromDataSource()
When you want to fill a specific field use :
GenEdt = oMatrix.Columns.Item("V_2").Cells.Item(1).Specific
GenEdt.String = "Hello" -
If Both tables having References then how to insert the data each other
Hai EveryOne..,
My Sample data.,
Create table emp (empno number primary key,ename varchar2(20));
Create table emp_dup (empno number references emp(empno),ename varchar2(20) primary key);
alter table emp add constraint ename_fk foreign key(ename) references emp(ename);
My Question is How to insert the data into these two tables?
Its a *"Circular Reference"* Concept.
Please ...
Thank You!!You need to set the DEFERRED clause of the constraint when you create your foreign key as DEFERRABLE by which you can move the constraint validation at transaction level.
In an interview point of view that could be a reasonable answer. But in real time this could be strongly questionable.
Here is an example
SQL> create table emp1 (empno number, ename varchar2(10))
2 /
Table created.
SQL> create table emp2 (empno number, ename varchar2(10))
2 /
Table created. Define Primary Key for two tables
SQL> alter table emp1 add constraint emp1_pk primary key (empno)
2 /
Table altered.
SQL> alter table emp2 add constraint emp2_pk primary key (ename)
2 /
Table altered. Add foreign key for two tables with DEFERRED clause set as DEFERRABLE
SQL> alter table emp1 add constraint emp1_fk foreign key (ename) references emp2(ename) initially deferred deferrable
2 /
Table altered.
SQL> alter table emp2 add constraint emp2_fk foreign key (empno) references emp1(empno) initially deferred deferrable
2 /
Table altered. Now here is the test case
SQL> insert into emp1 values (1, 'karthick')
2 /
1 row created.
SQL> commit
2 /
commit
ERROR at line 1:
ORA-02091: transaction rolled back
ORA-02291: integrity constraint (ARBORU.EMP1_FK) violated - parent key not found So the validation is done at Transaction level. Now let insert the value into both tables.
SQL> insert into emp1 values (1, 'karthick')
2 /
1 row created.
SQL> insert into emp2 values (1, 'karthick')
2 /
1 row created.
SQL> commit
2 /
Commit complete. -
How to insert system date in Session of the page
Greetings,
I am stuck at one thing and need guidline.
I created date parameter "From Date" - "to Date" . Item Type Date Picker.
- Set Default Value : Sysdate;
- Default Value Type : PL/SQL Expression.
When i run the page it shows current date , but when i see session state report of that page there Item Value is Empty and Status is also Empty.
The result in impact is that i created linked on data that displays, That link doesnt Work because of Item Value is Empty and Status is also Empty.
Kindly guide how i inserted value in Item Value and in status.
PlsHi,
>
I am stuck at one thing and need guidline.
I created date parameter "From Date" - "to Date" . Item Type Date Picker.
- Set Default Value : Sysdate;
- Default Value Type : PL/SQL Expression.
When i run the page it shows current date , but when i see session state report of that page there Item Value is Empty and Status is also Empty.
The result in impact is that i created linked on data that displays, That link doesnt Work because of Item Value is Empty and Status is also Empty.
Kindly guide how i inserted value in Item Value and in status.
>
When you set the value of an item in the source, the value is set in the HTML DOM not the session state.
To set value in session state use Computation or Process.
Cheers, -
How to insert a date in a numbers cell from applescript?
Hey guys,
I was just wondering, I got this list of dates that i want to change with this handler that i call datachanger, i use it to seperate dates like these 1994-11-07 and reassemble them. Now what i would like to do is to reassemble them in such a way that i can insert every item in datalist in numbers cells. Now it gives me a weird error. How do i have to change the things between bas3 and bas2 to get it to fit in a numbers cell without an error? or do i have to use the quoted form of it before i can insert it?
SCRIpt
on datumchanger(datumlist)
set a to 1
set datalist to {}
repeat with bas in datumlist
set AppleScript's text item delimiters to "-"
set bas1 to text item 1 of bas
set bas2 to text item 2 of bas
set bas3 to text item 3 of bas
set datumitem1 to bas3 & "," & bas2 & "," & bas1
set the end of datalist to datumitem1
end repeat
return datalist
end datumchanger
SCRIPT
Help is so much appreciated:)
Thank you so much in advance:)As I carefully wrote in several scripts posted here, when we want to insert a date in a Numbers cell,
we must coerce it to a string.
--{code}
set date1 to "" & 1 & "-" & 1 & "-" & 2012 -- it's a string
set date2 to "" & 1 & "/" & 1 & "/" & 2012 -- it's a string
set date3 to current date -- it's a date
set date4 to "1994-11-07"
Here is the safe way to build a date which will behave well on every localized version.
I use the short date string to set the time component to 00:00:00 *)
set date5 to date (short date string of (current date))
set year of date5 to 1943
set month of date5 to 12
set day of date5 to 31
tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
set value of cell "B2" to date1
set value of cell "C2" to date2
set value of cell "D2" to date3 as text
set value of cell "E2" to date4
set value of cell "F2" to date5 as text
end tell
--{code}
On my machine the format yyyy-mm-dd is accepted but I don't remember if it's the standard behavior or if I added this format in the dedicated resource file.
Yvan KOENIG (VALLAURIS, France) lundi 30 janvier 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
Maybe you are looking for
-
I cannot open an Pages document that a friend created on his Mac. Somehow it got corrupted. He made the document from a template I made for him. I called Applecare and they couldn't help me. We were able to open any other Pages documents I tried
-
How to monospace fonts in Illustrator?
I can't seem to find this feature - is it possible to do this in Illustrator? Thanks in advance!
-
Why is my iPhoto library no longer an option for Screen Saver in Mavericks?
My Screen Saver no longer pulls random photos from my selected iPhoto library. When I went into System Preferences --> Screen Saver I no longer see iPhoto folders as a Screen Saver option. Was a change made with Mavericks? When I try to select my Pic
-
Hello expertsl, I have a new challenge on board. I have a form that is automatically popped up. Now on the form, i need to insert a timer that as soon as it pops out, the timer starts and then i have to enter some data in the form and as soon as i pr
-
Backing Up Files & Applications
It seems to me that I should have been able to find a simple answer to this question, but I wasn't successful. I want to backup all the files & apps from my 20" Intel Duo iMac. I do not have an external disk, but I think I should be able to do so to