template::util::date::from_ansi (public)

 template::util::date::from_ansi ansi_date [ format ]

Defined in packages/acs-templating/tcl/date-procs.tcl

Create a new templating system date structure from a full ANSI date, i.e. in the format YYYY-MM-DD HH24:MI:SS.

Parameters:
ansi_date - Date in full ANSI format YYYY-MM-DD HH24:MI:SS (time portion is optional).
format (defaults to "YYYY MM DD") - Format for the date object. Optional, defaults to YYYY MM DD.
Returns:
Date object for use with e.g. form builder.
Author:
Lars Pind <lars@pinds.com>
Created:
November 18, 2002

Partial Call Graph (max 5 caller/called nodes):
%3 template::util::date::create template::util::date::create (public) template::util::date::set_property template::util::date::set_property (public) template::util::date::from_ansi template::util::date::from_ansi template::util::date::from_ansi->template::util::date::create template::util::date::from_ansi->template::util::date::set_property

Testcases:
No testcase defined.
Source code:
    set date [template::util::date::create]
    set date [template::util::date::set_property format $date $format]
    set date [template::util::date::set_property ansi $date $ansi_date]
    return $date
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: