client date time

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
heman1345
User
Posts: 9

client date time

Post by heman1345 »

Does anyone know how to make all date and times pull from client not server I have a hosted server that is one hour away so all times are inaccurate.


motfs
User
Posts: 258

Post by motfs »

You need to write JavaScript code to get the date time. Google for sample code.

Or offset the time in the Row_Inserting/Row_Updating server event.


heman1345
User
Posts: 9

Post by heman1345 »

How would I call the javascript on any date time field in my site


motfs
User
Posts: 258

Post by motfs »

You can add "on<xxx>='my_js_function();'" (in Edit Tag -> Custom Attributes) to call your JavaScript function by either onclick or onkeydown. See Field Setup -> Edit Tag -> Custom Attributes in the help file.


Post Reply