Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 126.96.36.199 release ready!
Owner and Founder. Opencart
What is timestamp?
A timestamp is that which contain some characters that are in an encoded form which will contain any event, date or time etc. For more information, you can also go through from here.
Where and How we use a timestamp?
A timestamp is that which is not readable form when you get it from the server or from other sources. So while to show some event, date or time in your application you have to make a timestamp into the readable form, you can make it readable form using these objects Date, Calendar, DateFormatter and use many more.
So I wrote a function that will help you to make it in readable form and gives you a time, day and date respectively.
This function will work in following cases:-
For getting current weekdays you have to write these cases:-
I hope from this, it will make you more comfortable dealing with a timestamp. Thanks for tuning in once again!
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.