Logo

What are you looking for?

Get help straight from our team...

API's, Frameworks & Databases

SK.UI.DatePicker

Last updated on 13 Mar, 2023

 

Overview

The class SK.UI.DatePicker creates a simple field and it allows users to pick up a date from calendar. It can use different Date Formats.

 

Preview of Date Picker

ImageImage

 

 

 

 

 

 

Include Resource Files

  • /Shared/UIComponents/Internal/DatePicker

    • css/datepicker.css

        <link type="text/css" rel="stylesheet" href="/Shared/UIComponents/Internal/DatePicker/css/datepicker.css">
    • Scripts/datepicker.js

        <script type="text/javascript" src="/Shared/UIComponents/Internal/DatePicker/Scripts/datepicker.js"></script>
    • Scripts/sk.ui.datepicker.js

        <script type="text/javascript" src="/Shared/UIComponents/Internal/DatePicker/Scripts/sk.ui.datepicker.js"></script>

 

Default Options

Name

Description

Type

Default Value

useFadeInOut

Fade in/out by default for all browsers

Boolean

true

format

Default SK date format

String

short_date_fmt

inputOutputFormat

Default SK DB date format

String

$YEAR$-$0M$-$0D$

injectTo

Append to <body> by default

DOMElement or String

_$(document.body)

injectPosition

Inject Position

String

bottom

startDay

Start weeks from Sunday (US Standard)

Number

0

dayShort

Length of day-abbreviations

Number

1

 

Methods

Name

Description

Parameters

Returns

getClone

Retrurns the cloned input field

String or DOMElement

DOMElement

parseDate

Parsing Date Helper

String

String

format

Formatting Date and Time using SK.Util.DateTime

Object, String (format)

String

unformat

Formatting Date and Time using "/" instead of "-"

String, String (format)

String

 

Examples

 

  • Creating a simple DatePicker with existing DOMElelements.

 

Did you find this article helpful?
Previous

SK.UI.Tabs

Next