ios – Date Show/entry on Apple Merchandise

0
63


In my App, i’ve a kind that requests a begin Date/Time and Finish Date/Time. The HTML seems like:

<div class="row">
            <div class="col col-sm-1">
                <label class="control-label">Begin Date</label>
            </div>
            <div class="col col-sm-2">
                <enter asp-for="StartDate"   class="form-control" />
            </div>
        </div>
        <div class="row">
            <div class="col col-sm-1">
                <label class="control-label">Finish Date</label>
            </div>
            <div class="col col-sm-2">
                <enter asp-for="EndDate" class="form-control" />
            </div>
        </div>

Earlier than displaying the view, I create the beginning and finish values one thing like:

    r.StartDate = new DateTime(now.Yr, 1, 1, 0, 0, 1, 0);
    r.EndDate = new DateTime(now.Yr, 12, 31, 23, 59, 58, 0);

This works tremendous on my Home windows pc utilizing Edge or Google.

After I run this identical code on my telephone, ipad, or Mac, it offers me an edit error saying the datetime is invalid. I’ve to vary the beginning time to 01 seconds, and the tip time to 58 seconds (59 will not work). It offers me “Enter Legitimate Date” error message.

This does not make any sense to me. Odd factor is, it isn’t simply safari. If I take advantage of Chrome on an apple machine, identical factor happens.