Get Date (yyyy-MM-dd) in DateTime format
Hi ,
I am looking to display date in format yyyy-MM-dd , but returned type should be DateTime.
var d=new Date();
// dateFormat(dateValue:DATETIME, dateFormat:STRING):STRING
var formattedDate = dateFormat(d, "yyyy-MM-dd");
// parseDate(stringDate:STRING, dateFormat:STRING):DATETIME
var dateValue = parseDate(formattedDate, "YYYY-MM-DD");
but its returning Date with Time. I need only YYYY-MM-DD.
Thanks

