Get started with date-fns CDN
Stable version
Copied!
How to start using date-fns CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with date-fns CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/date-fns@3.5.0/esm/date_fns.min.js"></script>
</head>
<body>
<script>
import { format } from 'date-fns';
const now = new Date();
const formattedDate = format(now, 'dd MMM yyyy HH:mm:ss');
console.log(formattedDate);
</script>
</body>
</html>
All versions
0.14.0
0.14.1
0.14.10
0.14.11
0.14.2
0.14.3
0.14.4
0.14.5
0.14.6
0.14.7
0.14.8
0.14.9
0.15.0
0.16.0
0.17.0
1.0.0
1.0.0-alpha1
1.0.0-alpha2
1.0.0-alpha3
1.0.0-alpha4
1.0.0-rc1
1.0.0-rc10
1.0.0-rc11
1.0.0-rc12
1.0.0-rc13
1.0.0-rc14
1.0.0-rc15
1.0.0-rc16
1.0.0-rc17
1.0.0-rc18
1.0.0-rc19
1.0.0-rc2
1.0.0-rc20
1.0.0-rc21
1.0.0-rc22
1.0.0-rc3
1.0.0-rc4
1.0.0-rc5
1.0.0-rc6
1.0.0-rc7
1.0.0-rc8
1.0.0-rc9
1.1.0
1.1.1
1.10.0
1.11.0
1.11.1
1.11.2
1.12.0
1.12.1
1.13.0
1.14.0
1.14.1
1.15.0
1.15.1
1.16.0
1.17.0
1.18.0
1.19.0
1.2.0
1.20.0
1.20.1
1.21.0
1.21.1
1.22.0
1.23.0
1.24.0
1.25.0
1.26.0
1.27.0
1.27.1
1.27.2
1.28.0
1.28.1
1.28.2
1.28.3
1.28.4
1.28.5
1.29.0
1.3.0
1.30.0
1.30.1
1.4.0
1.5.0
1.5.1
1.5.2
1.6.0
1.7.0
1.8.0
1.8.1
1.9.0
123
2.0.0-alpha0
2.20.0
2.20.1
2.20.2
2.20.3
2.21.0
2.21.1
2.21.2
2.21.3
2.22.0
2.22.1
2.23.0
2.24.0
2.25.0
2.26.0
2.27.0
2.28.0
2.29.0
2.29.1
2.29.2
2.29.3
2.30.0
3.0.0
3.0.1
3.0.2
3.0.3
3.0.4
3.0.5
3.0.6
3.1.0
3.2.0
3.3.0
3.3.1
3.4.0
3.5.0
*** 3.6.0
4.0.0-alpha.1