I am doing an asp project and the date is displayed as yyyy / mm / dd, but when the user clicks the edit button for the form, I need to replace the date format with dd / mm / yyyy
this asp code remembers, I need the user to show the date as yyyy / mm / dd in the table, but when he clicks on the button, I need the date that needs to be changed to dd / mm / yyyy
<td class="hidden-phone">@EnnotaBAL.ArabicEncoding.GetArabicNumbers(transaction.PostDate.ToString("yyyy/MM/dd"))</td>
and this javascript code for the date element:
var TransDate = oCells.item(4).innerHTML;
document.getElementById('Date').value = convertDigitIn(TransDate);
source
share