dt_ansi_to_pretty (public)

 dt_ansi_to_pretty [ ansi_date ]

Defined in packages/acs-datetime/tcl/acs-datetime-procs.tcl

Converts an ANSI date into a localzed one. With no argument, it returns the current date based on server time. Works for both date and date-time strings.

Parameters:
ansi_date (optional)
Date in ANSI format (for example, 1998-09-05)
Returns:
Localized date (for example, on 'en_US', 05/09/98)

Testcases:
dt_localized_procs
Source code:
    if {$ansi_date eq ""} {
        set ansi_date [dt_sysdate]
    }

    return [lc_time_fmt $ansi_date "%x"]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-datetime/tcl/acs-datetime-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: