Тёмный

Format UTC date string using DateFormatter in Swift 

Code Cat
Подписаться 16 тыс.
Просмотров 3,4 тыс.
50% 1

In this video, we will explore how we can format a UTC date format using DateFormatter.
Review the code shown in the video here: gist.github.com/codecat15/71d...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✅ Subscribe to the channel and stay ahead of everyone by following the right way for writing clean code in swift. 🔥🔥🔥🔥🔥
🔗Click on the link to subscribe: ru-vid.com?sub...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
############################################
Connect with me on social media
📧: codecat15@gmail.com
🐦: / codecat15
Facebook: / code.cat.792
Github: github.com/codecat15
###########################################
#swift #swiftTutorial #DateFormatterSwift

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@PremSarkar-qd1lx
@PremSarkar-qd1lx Год назад
Very Nice, too short , too clean, easy to understand. Thanks sir
@CodeCat15
@CodeCat15 Год назад
Glad this was helpful Prem, and welcome to the channel
@chetanmaradiya3073
@chetanmaradiya3073 2 года назад
you are really awesome @Ravi... you did a great job. keep it up. i cracked an interview because of your video. i learned a lots of things from that. your teaching style is so decent anybody can easily understand. Thank you so much "Legend". Happy iCoding.
@CodeCat15
@CodeCat15 2 года назад
I am happy for you and your success, congratulations 🎉 on clearing those rounds and always keep on learning new things and keep on upgrading your skills
@prataprana2963
@prataprana2963 2 года назад
Learned Something New
@CodeCat15
@CodeCat15 2 года назад
Happy to hear that buddy 🙏
@ernishant11
@ernishant11 2 года назад
Goodone Thank you so much @ravi :)
@CodeCat15
@CodeCat15 2 года назад
glad this was helpful Nishant
@kalyanidaddy5990
@kalyanidaddy5990 2 года назад
I also cleared interview because of his clear and simple format of information... Thank you soo much Ravi 🙏
@CodeCat15
@CodeCat15 2 года назад
Hey Kaylani, Congratulations 🎉 on clearing those interviews I am happy this channel was helpful. Keep up the good work and all the best for your future journey.
@riponshaikh2224
@riponshaikh2224 2 года назад
Sir, can u make a video for callkit.. Please...
@Jock3R87
@Jock3R87 2 года назад
Nobody bother about this Date and Number formatter cause people are used to visit stackOverflow or similar forum and copy paste, But you never leave things behind and unanswered which make you BEST video and content creator mate ..... You ear the RESPECT ... do well and all the best ....
@jayprakashsharma7
@jayprakashsharma7 2 года назад
Really helpful, very good explanation.
@CodeCat15
@CodeCat15 2 года назад
Thank you Jay
@nazzabazza842
@nazzabazza842 Год назад
ily so much
@CoolEye
@CoolEye 2 года назад
👌🏻👍🏻👍🏻
@CodeCat15
@CodeCat15 2 года назад
👍
@Rahul-jf5kf
@Rahul-jf5kf Год назад
Hi Ravi, One question. we want to implement extension to String and add method toDate()->Date which converts different strings to Date e.g. 12 Dec 2018 22:15:20 CST Sunday 20/April/2022 7(Mon).12(Dec).2020 and so on all these in single function
@CodeCat15
@CodeCat15 Год назад
You can have one extension where you pass this string date and an enum for the format you like but the things with date conversions is that it can get wild and there maybe some cases where you would need two date formatters to get the desired response. In any case date formatter will work only with a a valid date formats, if you pass any other format other than a valid one you’ll get nil. For custom date formats I suggest creating custom date formatter of your own and implement the logic for custom formats there, should be fun to work with and in theory this approach should work.
@farooqueazam8579
@farooqueazam8579 2 года назад
Nice
@CodeCat15
@CodeCat15 2 года назад
😊 glad it was helpful.
@pragatrajput
@pragatrajput 2 года назад
hi ravi, can you make videos on ssl pinning in iOS
@manveersingh1393
@manveersingh1393 2 года назад
Really cool, coincidentally i worked on this today as well. One request can you please make video on using instruments tool for intermediate level devs and cover interview questions asked from this.
@sardabensavaliya9890
@sardabensavaliya9890 2 года назад
We need regex video plz.
@Avinashkumar-ov8xm
@Avinashkumar-ov8xm 2 года назад
Sir how do I convert this 1650356374 in second. I am getting time like this from api and i have to convert it in hours and mint format
@CodeCat15
@CodeCat15 2 года назад
Check out the dateFormatter documentation it has few examples on that developer.apple.com/documentation/foundation/dateformatter
Далее
Difference between weak and unowned in Swift
16:20
Просмотров 14 тыс.
Misleading practices of SwiftUI on the internet
13:00
Просмотров 4,7 тыс.
Лайфхак с колой не рабочий
00:16
Просмотров 361 тыс.
New Way to Format Dates in Swift (5.5)
6:24
Просмотров 15 тыс.
25 nooby Python habits you need to ditch
9:12
Просмотров 1,7 млн
How Fast Can You Throw a Car in Poly Bridge 3?
15:06
Просмотров 34 тыс.
WHY IS THE STACK SO FAST?
13:46
Просмотров 139 тыс.
Swift Date Components & Calculations Tutorial
12:02
Просмотров 6 тыс.
Swift Tutorial: Dates & Formatters in iOS (2020)
16:37