Get current date?

edited July 11, 2018 in Questions
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.

Comments

  • edited March 2, 2017
    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!
  • edited April 8, 2014
    Is this still true?
  • Rob HatchRob Hatch 🛠️ 
    edited July 11, 2018
    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/)  
  • edited November 2, 2015
    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() );
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!