NAME

IX::Date - date tools for IX


SYNOPSIS

  use IX::Date;
  
  my $sql_date = '2011-05-07'; 
  
  # for a format like 5/7/2011 from 2011-05-07 [00:00:00]
  my $pretty_date = IX::Date::getPretty($sql_date);
  
  # for a format like 2011-05-07 from 5/7/2011
  $sql_date = IX::Date::getSQLformatted($pretty_date);


REQUIREMENTS

MySQL.


DESCRIPTION

Some helper date functions for IX application to use. This module's functions can be easily replaced by MySQL DATE_FORMAT method, except for getFiscalYear, which there may also be a function in MySQL for.