datetime - Freemarker : Convert unix timestamp string to date format string -


i getting unix timestamp in string format in ftl file. want reformat date readable string such "yyyy-mm-dd".

how should convert timestamp formatted date string ?

i got date in required format using below code:

calbookingentry.getstarttime()?number?number_to_datetime?string["yyyy-mm-dd"]


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -