#!/bin/sh

if [ -z "$*" ]
then
  date +"%Y%m%d"
else
  date +"%Y%m%d" --date "$*"
fi