Considering your second point, if you want 01/01/2021 the date to look like this → 01/Jan/2021
what you can do suppose if a varaiable say Var has the value → 01/01/2021
then, you can write something like
@ Shikhar how and when to call this. For instance my code is
Assuming i am placing ur code inside a function say
function test()
{
Datetime.ParseExact(Var, “dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MMM/yyyy”)
}
How and when to call this ? i am new to js. need your help
Take one assign CurrentDate =Datetime.ParseExact(Var, “dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MMM/yyyy”) you will get Today date.
Format what i am getting is different hence i am unable to compare and find which date is greater. For instance todays date format is (MM/dd/yyyy) and date what i picked from date picker is in (2021-01-14). All happening inside the html file. CurrentDate =Datetime.ParseExact(Var, “dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“dd/MMM/yyyy”) you will get Today date.
Will this line of code work inside html page ?
Suggest how to proceed. Based on these 2 format IF condition not working correctly.
Future date validation is working fine.
Still i am unable to find a solution for the below one. I choose a date in date picker it is displaying in below format
12-01-2021 want to change to the below format
12-Jan-2021 - how to convert to this format
My date picker code is inside a html page. Do u mean to say that once i choose a date in date picker i need to invoke this xaml from html page? If so how to do that ?
Yes i can understand that gettext and ur code provided. My question is its a pure Html file
how to use gettext inside html file ? I am new to this. Ex my code
input type=“date” id=“ScanDate” name=“ScanDate” value=“Submit”>
In the above code we get the date picker
In the sample pic its 01/12/2021 instead it should set as 01-Dec-2021.