my $self = shift;
my %params = (scalar(@_) == 1) && (ref($_[0]) eq 'HASH') ? %{ $_[0] } : @_;
return $::locale->format_date_object($self, %params);
}
my $self = shift;
my %params = (scalar(@_) == 1) && (ref($_[0]) eq 'HASH') ? %{ $_[0] } : @_;
return $::locale->format_date_object($self, %params);
}
Formats the date and time according to the current kivitendo user's
date format with L<Locale::format_datetime_object>.
Formats the date and time according to the current kivitendo user's
date format with L<Locale::format_datetime_object>.
Parses a date string formatted in the current kivitendo user's date
format and returns an instance of L<DateTime>.
Note that only dates can be parsed at the moment, not the time
Parses a date string formatted in the current kivitendo user's date
format and returns an instance of L<DateTime>.
Note that only dates can be parsed at the moment, not the time