---
schema_version: "1"
id: 6f4398e3447a55e235eac8d4bd96b1042426bdb2fc5aca23fafba7d3d7fa0d12
title: getToday
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-auralocalizationservice-gettoday.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-auralocalizationservice-gettoday.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 875b2ae69df75c9dc776d730091f07030d2360ddbd943c637beab5239d4b5dd9
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getToday

Gets today’s date based on a time zone.

## Signature

`getToday(string timezone, function callback)`

## Parameters

**_timezone_:** Type: `String`. A time zone ID based on the `` class, for example, `"America/Los_Angeles"`.

**_callback_:** Type: `function`. A function to call after the date is returned. Access the date in the first parameter of the callback.

## Sample Code

```javascript
var timezone = $A.get("$Locale.timezone");
// Returns the date string in the format "2015-11-25"
$A.localizationService.getToday(timezone, function(today){
    console.log(today);
});
```

