Skip to content

Instantly share code, notes, and snippets.

@battlejj
Created July 15, 2013 18:41
Show Gist options
  • Save battlejj/6002315 to your computer and use it in GitHub Desktop.
Save battlejj/6002315 to your computer and use it in GitHub Desktop.
private string function amazonDateFormat(required date dateToFormat) hint="Follows the ISO 8601 standard" {
var formattedDate = dateAdd("s", getTimeZoneInfo().utcTotalOffset, arguments.dateToFormat);
return "#dateFormat(formattedDate,"yyyy-mm-dd")#T#timeFormat(formattedDate,'HH:mm:ss')#Z";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment