How can i update Datetime

some1some1 Member ✭✭✭
edited July 13 in Xamarin.Forms

MODEL

`public class TDORDERS : INotifyPropertyChanged

{

    public event PropertyChangedEventHandler PropertyChanged;

    [PrimaryKey, AutoIncrement]

    public int TDId { get; set; }

    public DateTime? _tddate { get; set; }

public DateTime? TD_DATE

    {

        get { return _tddate; }

        set

        {

            if (_tddate == value)

                return;

            _tddate = value;

            OnPropertyChanged();

        }

    }

private void OnPropertyChanged([CallerMemberName] string propertyName = null)

    {

        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));

    }

}`

** How can i update TD_DATE with current datettime corresponding to TDId **

Tagged:

Answers

  • lowadlowad Member

    Nice

  • LandLuLandLu Member, Xamarin Team Xamurai

    How can i update TD_DATE with current datettime corresponding to TDId

    What do you mean about this? If you stored it to your local database retrieve and update it there.

Sign In or Register to comment.