Forum

HomeHomeCoreCoreGeneralGeneralPrepopulate a form field with today's date and time.Prepopulate a form field with today's date and time.
Previous
 
Next
New Post
2/4/2012 5:52 PM
 
I am trying to figure out an easy way of prepopulating a form field with todays date and time thereby allowing the user to change that value if necessary.  I can do it with a javascript function that takes several lines of code but was hoping someone could suggest something short and sweet like DateValue(Now) function in Visual Basic.  Thanks in advance.
New Post
2/10/2012 1:11 PM
 

You can use [Date,System]  (more info here - http://openwebstudio.com/topic/Columns_and_Values.aspx)

To format the date/time you can use the format tag as seen here - http://openwebstudio.com/topic/Formatters.aspx

 

EXAMPLE:

[Format,[Date,System],{0:d}] = 11/2/2012

[Format,[Date,System],{0:t}] = 7:08 PM

New Post
2/10/2012 3:36 PM
 
Exactly what I was looking for.  Thanks for the help.  Also appriciate the references even more.
Previous
 
Next
HomeHomeCoreCoreGeneralGeneralPrepopulate a form field with today's date and time.Prepopulate a form field with today's date and time.


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share