'us-west-2', 'version' => 'latest' ]); $dynamodb = $sdk->createDynamoDb(); $fourteenDaysAgo = date('Y-m-d H:i:s', strtotime('-14 days')); $response = $dynamodb->query([ 'TableName' => 'Reply', 'KeyConditionExpression' => 'Id = :v_id and ReplyDateTime >= :v_reply_dt', 'ExpressionAttributeValues' => [ ':v_id' => ['S' => 'Amazon DynamoDB#DynamoDB Thread 2'], ':v_reply_dt' => ['S' => $fourteenDaysAgo] ] ]); print_r ($response['Items']); // snippet-end:[dynamodb.php.codeexample.SampleDataQuery] ?>