Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How can i update Datetime

$
0
0

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 **


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>