---
schema_version: "1"
id: 4f3ec000b7bd3c4fb3a408c229fd3912c5b1641b62b38e7ac8a27ec268929878
title: setGatewayDate(gatewayDate)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_commercepayments_PostAuthorizationResponse_setGatewayDate.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_commercepayments_PostAuthorizationResponse_setGatewayDate.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: caf1e3fe379a99ababa0c24410d5a0cf1aac113cf1f2e38d5928a2cb80385eb4
description: Sets the date that the authorization occurred. Some gateways don’t send this value.
---
# setGatewayDate(gatewayDate)

Sets the date that the authorization occurred. Some gateways don’t send this value.

## Signature

public void setGatewayDate(Datetime gatewayDate)

## Parameters

- **gatewayDate**: Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")

## Return Value

Type: void