LocDate$

Purpose:

Returns a string formatted as a date according to the country code/culture identifier specified in the second (optional) parameter.

Parameter:

Date            Value to be formatted

String                    (optional) Country code (ISO 3166-1 alpha-2, ISO 3166-1 alpha-3, ISO 3166-1 numeric-3) or culture identifier, e.g., 'US', 'USA', '840' or 'en-US'. Default: System setting

Number              (optional) 0=Short (default), 1=Long, 2=Short, alternative calendar, 3=Long, alternative calendar

Return value:

String

Example:

LocDate$ (Date("04.07.1776"),"en-US")    Result: 07/04/1776

LocDate$ (Date("04.07.1776"),"en-US",1) Result: Thursday, July 04, 1776