|utc Filter

converts a datetime to UTC.

Date and Time As Markdown

Argument
None
Requires
{% load tz %}

Documentation

Converts one aware datetime to UTC.

Template

{% load tz %}
{{ value|utc }}

Handy where a timestamp has to be unambiguous — a log line, or something another system will parse.

More Date and Time Filters

All Date and Time Filters


Did we get something wrong? Is there a use case for the utc filter that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on August 20, 2026