WEB APP not native, no Objective-C
This is so simple it hurts.
Done to use the iPa
Try this for Safari on iOS 5
$('input[type="date"]').val('yyyy-MM-dd');
You could do the conversion from the type of Date you are using to yyyy-MM-DD
in JavaScript using the Date()
function.
for iOS6 the ISO format "YYYY-MM-DDTHH:mm:ss.sssZ" is required:
var now = new Date().toISOString();
$("input[type=datetime]").val(now);