mendraw/mendix/date
Types
pub type JsDate
Values
pub fn create(
year: Int,
month: Int,
day: Int,
hours: Int,
minutes: Int,
seconds: Int,
milliseconds: Int,
) -> JsDate
날짜/시간 요소로 생성 (month: 1-12)
pub fn from_input_value(
date_string: String,
) -> option.Option(JsDate)
“YYYY-MM-DD” → Option(JsDate) 변환 (빈 문자열 → None)
pub fn to_input_value(date: JsDate) -> String
JsDate → “YYYY-MM-DD” 변환 (로컬 시간 기준, input[type=“date”] 용)