Hello All. I have a small problem with datepicker. I want use custom datepicker. I use this snippet for disable all UM DatePicker. And add my custom datepicker. All work fine, but when I choose date in my datepicker, date change only visual. When I click registration button I have error in date input label.
The same problem if I edit the user profile and change the date, it also changes only visually. After pressing the update profile button, the date remains as it was.
@missveronicatv Thanks for you help, I add you datepicker integration. But now I have wrong date format, I change date format in JS file “Y-m-d” to “d.m.Y” but its now work 🙁
@missveronicatv I find solution for me 🙂 Thanks. I edit date format in class-fields.php – line 2649.
May be you can help me, how I can add this code in Snippet. I don’t want edit original UM Plugin files. Thanks for help!
// Normalise date format.
$value = $this->field_value( $key, $default, $data );
if ( $value ) {
// numeric (either unix or YYYYMMDD). ACF uses Ymd format of date inside the meta tables.
if ( is_numeric( $value ) && strlen( $value ) !== 8 ) {
$unixtimestamp = $value;
} else {
$unixtimestamp = strtotime( $value );
}
// Ultimate Member date field stores the date in metatable in the format Y/m/d. Convert to it before echo.
//$value = date( 'Y/m/d', $unixtimestamp );
$value = date( 'd.m.Y', $unixtimestamp );
}