Formula Helper on Client Side is using a Server Side API Cal

Posted by Rollbase User on 31-Aug-2012 02:20

Hi All, Good Day! I am currently using the "Formula Helpers" on a Script Component.  On select of the "Formula Helpers" option, select "Today's Date"...  ...and notice that it returns a server side api call. Can there be a client side equivalent for this helper as well so we can use this useful helper as well? :)

All Replies

Posted by Admin on 31-Aug-2012 18:23

Hi Gudz,



For client side all you need to do is the following JavaScript:

var currentDate = new Date();



For more info on working with Dates in JavaScript see:

https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date



Regards,

Matt

This thread is closed