---
title: now
summary: null
url: https://www.fastly.com/documentation/reference/vcl/variables/date-and-time/now
---


The current time in [RFC 1123 format](https://www.ietf.org/rfc/rfc1123.txt)
(e.g., `Sun, 16 Nov 2014 15:20:53 GMT`).

## Examples

Setting cookie expiration:
```vcl
set resp.http.set-cookie = "foo=bar; secure; httponly; expires=" now + 1d;
```

In a synthetic response:
```vcl
if (obj.status == 610) {
  set obj.status = 410;
  set obj.response = "Gone";
  set obj.http.Content-Type = "text/plain; charset=utf8";
  synthetic {"
    Resource "} + req.url.path + {" gone as of "} + now + {"
  "};
  return (deliver);
}
```
