JSFiddle - React, Tailwind, and code Playground

Date Calendar Icon

by Andrew Pougher

HTML

<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.css">
<div ng-app="MyApplication" ng-controller="MyController">
 
 <div class="date">
	<span class="binds"></span>
	<span class="month  animated flipInX">{{info.joined | cmdate:'MMMM'}}</span>
	<h1 class="day">{{info.joined | cmdate:'dd'}}  <small class="small">{{info.joined | cmdate:'yyyy'}}</small></h1>
</div>
 
 
</div>

CSS

.date {
	display: block;
	width: 100px;
	height: 110px;
	margin: 30px auto;
	background: #fff;
	text-align: center;
	font-family: 'Helvetica', sans-serif;
	position: relative;
}

.date .binds {
	position: absolute;
	height: 15px;
	width: 60px;
	background: transparent;
	border: 2px solid #999;
	border-width: 0 5px;
	top: -6px;
	left: 0;
	right: 0;
	margin: auto;
}

.date .month {
	background: #555;
	display: block;
	padding: 8px 0;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
	border-bottom: 2px solid #333;
	box-shadow: inset 0 -1px 0 0 #666;
}

.date .day {
	display: block;
	margin: 0;
	padding: 10px 0;
	font-size: 48px;
	box-shadow: 0 0 3px #ccc;
	position: relative;
}

.date .day::after {
	content: '';
	display: block;
	height: 100%;
	width: 96%;
	position: absolute;
	top: 3px;
	left: 2%;
	z-index: -1;
	box-shadow: 0 0 3px #ccc;
}

.date .day::before {
	content: '';
	display: block;
	height: 100%;
	width: 90%;
	position: absolute;
	top: 6px;
	left: 5%;
	z-index: -1;
	box-shadow: 0 0 3px #ccc;
}
.date small{	font-size: 8px;color:#777777;position:absolute;margin:-4px}

JavaScript

var app = angular.module('MyApplication',[]);

app.controller('MyController', ['$scope', function($scope){
var dt = "2016-02-19 11:03:50";

    $scope.info = {joined: dt};
    
   
   
}]);

app.filter('cmdate', [
    '$filter', function($filter) {
        return function(input, format) {
            return $filter('date')(new Date(input), format);
        };
    }
]);