Initializing From Field Value to today's date

S

shikha

Hi,

I am using FrontPage 2002, on the form I have the field name date, and I
want to set its value to today's date, and similarly I have a field name Time
on the form, and want to set its value to current time.

Is it possible? Any help will be greatly appreciated :)
 
S

Stefan B Rusynko

Search for client side (JavaScript) date / time scripts

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| I am using FrontPage 2002, on the form I have the field name date, and I
| want to set its value to today's date, and similarly I have a field name Time
| on the form, and want to set its value to current time.
|
| Is it possible? Any help will be greatly appreciated :)
 
S

shikha

Hi Stefan,

First of all thank you so much for your reply. I am using ASP, so when I
search for its date/time scripts, i get DateTime.Now, but whenI put that
under Initial Value, it is not evaluating the epxression, its showing the
formula....Any suggestions???
 
T

Thomas A. Rowe

If you are using ASP, then set the initial field value to

<%=Date()%>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

shikha said:
Hi Stefan,

First of all thank you so much for your reply. I am using ASP, so when I
search for its date/time scripts, i get DateTime.Now, but whenI put that
under Initial Value, it is not evaluating the epxression, its showing the
formula....Any suggestions???

Stefan B Rusynko said:
Search for client side (JavaScript) date / time scripts

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| I am using FrontPage 2002, on the form I have the field name date, and I
| want to set its value to today's date, and similarly I have a field name Time
| on the form, and want to set its value to current time.
|
| Is it possible? Any help will be greatly appreciated :)
 
S

shikha

Hi Thomas,

I inputted this <%=Date()%> formula under form field properties Intial
Value, and when I preview, I still see the formula. Is that how it will be,
until i post my site to a server? This is my project with Frontpage, so
still in the learning stage.

Thank you for your help!!

Thomas A. Rowe said:
If you are using ASP, then set the initial field value to

<%=Date()%>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

shikha said:
Hi Stefan,

First of all thank you so much for your reply. I am using ASP, so when I
search for its date/time scripts, i get DateTime.Now, but whenI put that
under Initial Value, it is not evaluating the epxression, its showing the
formula....Any suggestions???

Stefan B Rusynko said:
Search for client side (JavaScript) date / time scripts

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| I am using FrontPage 2002, on the form I have the field name date, and I
| want to set its value to today's date, and similarly I have a field name Time
| on the form, and want to set its value to current time.
|
| Is it possible? Any help will be greatly appreciated :)
 
T

Thomas A. Rowe

Yes, you must view the page from a server, and the page must have a .asp extension.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

shikha said:
Hi Thomas,

I inputted this <%=Date()%> formula under form field properties Intial
Value, and when I preview, I still see the formula. Is that how it will be,
until i post my site to a server? This is my project with Frontpage, so
still in the learning stage.

Thank you for your help!!

Thomas A. Rowe said:
If you are using ASP, then set the initial field value to

<%=Date()%>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

shikha said:
Hi Stefan,

First of all thank you so much for your reply. I am using ASP, so when I
search for its date/time scripts, i get DateTime.Now, but whenI put that
under Initial Value, it is not evaluating the epxression, its showing the
formula....Any suggestions???

:

Search for client side (JavaScript) date / time scripts

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| I am using FrontPage 2002, on the form I have the field name date, and I
| want to set its value to today's date, and similarly I have a field name Time
| on the form, and want to set its value to current time.
|
| Is it possible? Any help will be greatly appreciated :)
 
S

shikha

Thank you so much Thomas, I really really appreciate your help :) :)

Thomas A. Rowe said:
Yes, you must view the page from a server, and the page must have a .asp extension.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

shikha said:
Hi Thomas,

I inputted this <%=Date()%> formula under form field properties Intial
Value, and when I preview, I still see the formula. Is that how it will be,
until i post my site to a server? This is my project with Frontpage, so
still in the learning stage.

Thank you for your help!!

Thomas A. Rowe said:
If you are using ASP, then set the initial field value to

<%=Date()%>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

Hi Stefan,

First of all thank you so much for your reply. I am using ASP, so when I
search for its date/time scripts, i get DateTime.Now, but whenI put that
under Initial Value, it is not evaluating the epxression, its showing the
formula....Any suggestions???

:

Search for client side (JavaScript) date / time scripts

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi,
|
| I am using FrontPage 2002, on the form I have the field name date, and I
| want to set its value to today's date, and similarly I have a field name Time
| on the form, and want to set its value to current time.
|
| Is it possible? Any help will be greatly appreciated :)
 
Top