I am trying to extract the day of the week from the AWS createdAt date format.
For example, given this date format: 2021-10-20T17:05:26.758Z find the day of the week (ie. Wednesday, Monday...)
I am working in Javascript and I am using AWS Amplify and Dynamo DB.
This date 2021-10-20T17:05:26.758Z is a valid ISO 8601 date format,
so you can use Date() and toLocaleDateString() to get day name:
const dayName = new Date('2021-10-20T17:05:26.758Z').toLocaleDateString('en-US', { weekday: 'long' });
console.log(dayName);