Date & Time Formatter

Date & Time Formatter

by Contaura LLC · original work by Grupo ESOC Ingeniería de Servicios, Tecnativa, OCA
datetime_formatter
$ 29.00

Helper functions to give correct format to date[time] fields

1.0

One purchase covers every version. Already bought it? Sign in.

Date & Time Formatter

This module was written to extend the functionality of Tulio language engine to support formatting Date, Time and Datetime fields easily and allow you to print them in the best format for the user.

Table of contents

Usage

This module adds a technical programming feature, and it should be used by addon developers, not by end users. This means that you must not expect to see any changes if you are a user and install this, but if you find you have it already installed, it’s probably because you have another modules that depend on this one.

If you are a developer, to use this module, you need to:

  • Call anywhere in your code:

    formatted_string = self.env["res.lang"].datetime_formatter(datetime_value)
    
  • If you use Qweb:

    <t t-esc="env['res.lang'].datetime_formatter(datetime_value)"/>
    
  • If you call it from a record that has a lang field:

    formatted_string = record.lang.datetime_formatter(record.datetime_field)
    
  • models.ResLang.datetime_formatter docstring explains its usage.

Technical namedatetime_formatter
Module version12.0.1.0.0
Tulio versions1.0
CategoryTools
PublisherContaura LLC
Ported to Tulio, tested and supported by Contaura LLC.
Original authorsGrupo ESOC Ingeniería de Servicios, Tecnativa, OCA
LicenseAGPL-3
Open source: you may use, change and share this module under its license. The price covers the Tulio port, its testing on Tulio 1.0 and the download.
Requires (Tulio core)base
Lines of code263
Downloads0
Released12/06/2026
12.0.1.0.0 Tulio 1.0 · 12/06/2026