Formating Server.Now.Date to show two digits

Hi guys I couldnt find anything saying how to format the date with two digits to be used in the version number.


Is it currently possible ?

Hi Diego

We’re looking into this.

Hi Diego

In the next build, the Server.Now property will support a Format function which takes a .net datetime format string, e.g :

$Server.Now.Format(“dd-MM-yyyy”)$

Nice

FWIW, we had always intended to support functions, in fact the parser was parsing the expression just fine, but it was never hooked up in the evaluator. Unfortunately the client intellisense doesn’t know about functions yet, so when you type $Server.Now. and select Format from the drop down list, it will autocomplete to $Server.Now.Format$ - so you will need to go back and add the brackets and parameter. The intellisense fix will have to come later.

Not a problem at the time