There might be a plugin or two that can convert a text to a date…
Otherwise you’ll have to construct a ‘date’ yourself, then format it however you like…
You can use an arbitrary date (or current date/time), then change the year, month, date, and time etc. to the value from the text using the :split by operator. (you’ll need to convert each part of the text into a number).
Can you explain more detailed idea about the second solution you have given?
Use of a arbitrary date. As i’m getting the list in API response, how can i store the text value in arbitrary date and then format it again.
after formatting the time is 06:07 where the original time was 06:30 .
What must be the reason behind not formatting the time?
Am i doing it the correct way ?
after formatting the time is 06:07 where the original time was 06:30 .
What must be the reason behind not formatting the time?
Am i doing it the correct way ?
m = month
M = minutes
You’re formatting it as hh:mm which is Hours:Month (hence 07 for July)