Scotland has broken its record for the highest September temperature in more than a century.
The Met Office confirmed a high of 28.6C in Charterhall in the Borders on Wednesday – the warmest September day since 1906 when Gordon Castle in Moray reached 32.2C.
However, the mini heatwave is not set to last for long as a yellow weather warning for thunderstorms is in place for Scotland.
Heavy downpours and flooding are expected in places across the country on Thursday between 10am and 8pm.
The Met Office has warned the downpours could cause flooding leading to property damage and disruption to travel.
The Scottish Environment Protection Agency has issued flood alerts for the following regions: Aberdeenshire and Aberdeen City, Argyll and Bute, Ayrshire and Arran, Caithness and Sutherland, Central, Dumfries and Galloway, Dundee and Angus, Easter Ross and Great Glen, Edinburgh and Lothians, Fife, Findhorn Nairn Moray and Speyside, Scottish Borders, Skye and Lochaber, Tayside, West Central Scotland, Wester Ross and Western Isles.
The rest of the UK has also basked in the end of the summer heat this week, with the highest temperature on Tuesday reaching 30.7C at Gogerddan, in Dyfed, Wales, according to the Met Office.
Highs of 30.4C were recorded in west London and 30.3C at Pershore in Worcestershire.