Skip to contents

Generated wrapper for the Web Awesome wa-format-date component. Generated from Web Awesome metadata.

Usage

wa_format_date(
  ...,
  id = NULL,
  class = NULL,
  style = NULL,
  date = NULL,
  day = NULL,
  dir = NULL,
  era = NULL,
  hour = NULL,
  hour_format = NULL,
  lang = NULL,
  minute = NULL,
  month = NULL,
  second = NULL,
  time_zone = NULL,
  time_zone_name = NULL,
  weekday = NULL,
  year = NULL
)

Arguments

...

Child content for the component's default slot.

id

Optional DOM id attribute for HTML, CSS, and JS targeting.

class

Optional CSS class string.

style

Optional inline CSS style string.

date

Default: new Date(). The date/time to format. If not set, the current date and time will be used. When passing a string, it's strongly recommended to use the ISO 8601 format to ensure timezones are handled correctly. To convert a date to this format in JavaScript, use date.toISOString().

day

Enumerated string. Allowed values: 2-digit, numeric. The format for displaying the day.

dir

String. Optional Web Awesome attribute.

era

Enumerated string. Allowed values: long, narrow, short. The format for displaying the era.

hour

Enumerated string. Allowed values: 2-digit, numeric. The format for displaying the hour.

hour_format

Enumerated string. Allowed values: 12, 24, auto. Default: auto. The format for displaying the hour.

lang

String. Optional Web Awesome attribute.

minute

Enumerated string. Allowed values: 2-digit, numeric. The format for displaying the minute.

month

Enumerated string. Allowed values: 2-digit, long, narrow, numeric, short. The format for displaying the month.

second

Enumerated string. Allowed values: 2-digit, numeric. The format for displaying the second.

time_zone

String. The time zone to express the time in.

time_zone_name

Enumerated string. Allowed values: long, short. The format for displaying the time.

weekday

Enumerated string. Allowed values: long, narrow, short. The format for displaying the weekday.

year

Enumerated string. Allowed values: 2-digit, numeric. The format for displaying the year.

Value

An HTML tag for the component.

Shiny Bindings

None.