Lasso Soft Inc. > Home

[ locale_format_style_medium ]

Method

The [locale_format_style_medium] method is used as a parameter in [locale->format] calls.

This method tells [locale->format] to use the medium styling for the particular locale.

  • Syntax
locale->format( value, locale_format_style_medium )
Examples
  • Beginner

Output a date in the medium format of a locale

Use the [locale_format_style_medium] method. This example outputs the medium format of date in English Canada .

Code

var(myLocale = locale_canada,
     myDate = date)

$myLocale->format($myDate, locale_format_style_medium)+'\n'

Result

2011-02-12

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft