Skip to main content

Is there a way to get the current date to use in a template or a page title? It isn’t a field in any model that I have on my page.

The easiest way to do it would be to add a Formula field of type Date called “Today__c”, whose formula is “TODAY()”, on the object whose Model you’d use for the PageTitle component, and then include that field in that Model. Then you could use it like any other field. There’s currently no merge field in the Skuid API that just gives you the current date, but it would be nice to have one!


Is this still true?


If you don’t mind going to javascript you can use this syntax:  


$.datepicker.formatDate('dd/mm/yy', new Date())


The JQuery datepicker format utilitity provides lots of ways to format the date.   (http://api.jqueryui.com/datepicker/)  


Could also do this as well (from here: http://help.skuidify.com/s/tutorials/m/11720/l/129505-skuid-time): 


skuid.time.getSFDateTime( new Date() );