Today’s Date as Default Date

Today’s Date as Default Date

Description

This checkbox allows you to select the current date as the default date to scroll to when the scene is loaded or the ADP is enabled.

If this property is set to false, a custom date must be provided (See Set Custom Default Date).

Type

Bool

Syntax

AMADatePicker.ADP.TodayAsDefaultDay = true; 

Example

using UnityEngine;
using AMADatePicker;

public class DateViewer : MonoBehavior

// Get reference to an ADP instance through the inspector
[SerializeField] private ADP _ADPInstance;

private void Start()
{
    _ADPInstance.TodayAsDefaultDay = true;
} 

Leave a Reply

Your email address will not be published. Required fields are marked *