Создание сайтов, поисковое продвижение, разработка веб-приложений.
+7 (987) 254-02-67
Email: feedback@goinweb.ru
ул. Новоженова 90/1, офис 419

code-date

Иногда нужно вывести дату и не просто день, месяц, год числами, а красиво с названиями дня недели и месяца и всё это на родном языке.  Известно, что  в языке PHP есть функция “date”, которая возвращает  дату. Но естественно только на английском. Выглядит это примерно так:  Thursday, 28 October 2010 г.
Выглядит как-то не очень.
Хотелось бы примерно так:  Четверг, 28 Октября 2010 г.

Решение очень простое:

<?php 
function russian_date() {
 $translation = array(
 "am" => "дп",
 "pm" => "пп",
 "AM" => "ДП",
 "PM" => "ПП",
 "Monday" => "Понедельник",
 "Mon" => "Пн",
 "Tuesday" => "Вторник",
 "Tue" => "Вт",
 "Wednesday" => "Среда",
 "Wed" => "Ср",
 "Thursday" => "Четверг",
 "Thu" => "Чт",
 "Friday" => "Пятница",
 "Fri" => "Пт",
 "Saturday" => "Суббота",
 "Sat" => "Сб",
 "Sunday" => "Воскресенье",
 "Sun" => "Вс",
 "January" => "Января",
 "Jan" => "Янв",
 "February" => "Февраля",
 "Feb" => "Фев",
 "March" => "Марта",
 "Mar" => "Мар",
 "April" => "Апреля",
 "Apr" => "Апр",
 "May" => "Мая",
 "May" => "Мая",
 "June" => "Июня",
 "Jun" => "Июн",
 "July" => "Июля",
 "Jul" => "Июл",
 "August" => "Августа",
 "Aug" => "Авг",
 "September" => "Сентября",
 "Sep" => "Сен",
 "October" => "Октября",
 "Oct" => "Окт",
 "November" => "Ноября",
 "Nov" => "Ноя",
 "December" => "Декабря",
 "Dec" => "Дек",
 "st" => "ое",
 "nd" => "ое",
 "rd" => "е",
 "th" => "ое",
 );
 if (func_num_args() > 1) {
 $timestamp = func_get_arg(1);
 return strtr(date(func_get_arg(0), $timestamp), $translation);
 } else {
 return strtr(date(func_get_arg(0)), $translation);
 };
}
?>

Теперь выводим где нужно:

<?php echo russian_date("l, j F Y г."); ?>

В выводе, можно менять последовательность (день, месяц, год) и добавит стили по вкусу.

Не дорого и в срок разработаем сайт для Вас.

Комментарии  

#401 Ethel 14.05.2022 21:19
%%

My web-site :: slot gacor malam ini: https://www.techno-lavka.ru/foto-i-video/fotoaksessuary/akkumulyatory/akkumulyator-dlya-fotoapparata-digicare-pln-el12-en-el12-dlya-coolpix-s800c-s6200-s6300-s8200-s9200-s9300-p310-aw100.html?tmpl=component
#402 Nereida 14.05.2022 23:21
%%

Feel free to visit my homepage; slot gacor pulsa: http://buchiki.com/ViewSwitcher/SwitchView?mobile=False&returnUrl=http%3A%2F%2Fmusclesociety.com%2Findex.php%2Fblog%2F638816%2Fapakah-slot-gacor-malam-ini-harga-untuk-anda%2F
#403 Olga 15.05.2022 07:04
Howdy just wanted to give you a quick heads up. The words in your post seem
to be running off the screen in Firefox. I'm not sure if this is
a format issue or something to do with internet browser compatibility but I figured
I'd post to let you know. The design look
great though! Hope you get the problem solved soon. Cheers

Feel free to visit my blog ... Ikaria Lean Belly Juice Review: https://en.pepeduarte.com/community/profile/quinntalbot1490/
#404 Muhammad 15.05.2022 12:12
%%

Take a look at my website ... agen slot gacor: http://jiehun.deyi.com/go.php?url=http://classicalmusicmp3freedownload.com/ja/index.php?title=Segala_Sesuatu_Itu_Daftar_Situs_Judi_Slot_Online_Terpercaya
#405 Casie 15.05.2022 13:40
%%

Here is my site; slot tergacor hari ini: https://community.freeriderhd.com/redirect/?url=https%3A%2F%2Fvoicesofleaders.com%2Febooks%2F2015%2F12%2F02%2Ffrancisco-jose-gomez-ortiz-rector-and-vice-president-of-the-universidad-catolica-colombia%2F
#406 Justin 15.05.2022 13:58
%%

My site: slot gacor joker123: http://m.ru.kiadp.com/member/login.html?noMemberOrder=&returnUrl=http%3a%2f%2fcdn.shortpixel.ai%2Fclient%2Fq_lqip%2Cret_wait%2Fhttps%3A%2F%2Fcacophonyfarm.com%2Findex.php%2FSemua_Sesuatu_Keuntungan_Tampak_Slot_Online
#407 Franklyn 15.05.2022 18:04
%%

Review my blog ... slot gacor 88: http://m.shopintoledo.com/redirect.aspx?url=dyntec.org%2Fau-pair%2Fsemua-sesuatu-itu-daftar-situs-judi-slot-online-terpercaya-24.html
#408 Lucia 15.05.2022 20:31
%%

My web page info slot gacor hari ini: http://Www.Bowlingfoto.cz/displayimage.php?album=19&pos=12
#409 Terence 15.05.2022 22:20
%%

Stop by myy web-site :: akun slot gacor hari ini: http://www.nokia-love.ru/go?http://www.gyogan.net/su/ps_search.cgi?act=jump&access=1&url=http://anunciomex.com/au-pair/menjulung-10-kesalahan-di-situs-slot-gacor-bahwa-kamu-bisa-gampang-betul-saat-itu.html
#410 Eden 16.05.2022 00:25
%%

Here is my blog: slot gacor resmi: https://www.condotiddoi.com/bannergoto.php?bannerid=8&bannerlink=http%3a%2f%2fcgi.e-plan-web.com%2Fblog%2Fms.cgi%3FShowDiary_file%3D%2Fsekoutyuukei%2F1245301017%26blogid%3D1%26t%3DShowDiaryCommentForm
#411 Tracey 16.05.2022 06:31
Hiya! I know this is kinda off topic but I'd figured I'd ask.
Would you be interested in trading links or maybe guest writing a blog article or vice-versa?

My blog discusses a lot of the same subjects as yours and I
think we could greatly benefit from each other. If you're interested feel free to send
me an e-mail. I look forward to hearing from you!

Awesome blog by the way!

Feel free to surf to my page - 드와이트 페어필드: https://movietriggers.org/index.php?title=User_talk:RichieGoldsbroug
#412 Mohammad 16.05.2022 11:56
%%

My web page ... gacor
slot: https://Www.Goinweb.ru/sovety/253-kak-zapustit-svoj-sajt-khosting-i-domen
#413 Mohammed 16.05.2022 12:17
Very nice post. I just stumbled upon your blog
and wanted to mention that I have really loved surfing around your blog posts.

After all I'll be subscribing on your rss feed and I hope you
write once more soon!

Here is my web site Belinda: https://rikotut.net/hot-boy-abuses-skinny-legal-age-teenager-48226
#414 Aleida 16.05.2022 12:27
I have learn some just right stuff here. Definitely price
bookmarking for revisiting. I wonder how so much attempt you put to create one of these magnificent informative web site.


Feel free to visit my webpage: Demetrius: https://haringeylscb.org/really-hot-nurse-sucking-in-fake-hospital-30933
#415 Jamie 16.05.2022 12:28
Hello Dear, are you actually visiting this web page regularly, if so afterward you will without doubt
take nice experience.

Feel free to visit my blog - Dianna: https://workoutwithdi.com/guy-fucks-babe-in-her-rectal-hole-and-magic-mouth-14948
#416 Elvis 16.05.2022 12:31
I all the time emailed this website post page to all my friends,
since if like to read it afterward my friends will too.


Feel free to visit my web site :: Tyrone: https://vragi-naroda.net/victoria-daniels-oils-up-and-plays-with-her-pussy-96766
#417 Georgina 16.05.2022 12:33
I absolutely love your blog.. Pleasant colors & theme.
Did you create this amazing site yourself? Please reply back
as I'm wanting to create my own personal website and would love
to find out where you got this from or what the theme is called.

Many thanks!

Check out my web page - Fernando: https://worldfreeinternet.net/dr-orgasm-a-doctor-who-administers-illegal-orgasms-to-hot-and-sexy-female-patients-93970
#418 Kurt 16.05.2022 12:39
These are really wonderful ideas in on the topic of blogging.
You have touched some pleasant things here. Any way keep up wrinting.


Feel free to surf to my page: Collin: https://achildscloset.com/best-kept-secret-70510
#419 Sal 16.05.2022 12:40
certainly like your web-site but you need to take a look at the spelling on quite a
few of your posts. Several of them are rife with spelling problems and I
in finding it very bothersome to tell the truth on the other hand I'll certainly come back again.

Here is my page ... Irwin: https://concordiastation.org/naive-lisa-shy-fucked-78060
#420 Adelaida 16.05.2022 12:42
Wow, this post is fastidious, my sister is analyzing these kinds of things, therefore I am going to
let know her.

Here is my website ... Claudette: https://rocknrollghost.com/legal-age-teenager-fur-pie-in-a-reality-porn-vid-86450
#421 Lorna 16.05.2022 12:47
Thankfulness to my father who stated to me on the topic of this blog, this web site is genuinely awesome.


Feel free to surf to my homepage ... Brad: https://brittneygilbert.com/slutty-brunette-squirts-muscular-chick-spreads-eagle-for-cash-94961
#422 Chante 16.05.2022 12:48
I am in fact thankful to the owner of this web site who has shared this fantastic article at at this time.


my blog ... Everette: https://annasanimaties.com/hot-black-maid-does-some-webcam-16843
#423 Garfield 16.05.2022 12:51
Howdy! This is kind of off topic but I need some advice from an established blog.

Is it hard to set up your own blog? I'm not very techincal but
I can figure things out pretty quick. I'm thinking about creating my own but I'm
not sure where to begin. Do you have any tips or suggestions?
With thanks

My web-site :: Shani: https://jpgrider.com/oily-brunette-bimbo-services-fat-fuck-stick-in-the-shower-40898
#424 Harriett 16.05.2022 12:59
There's definately a great deal to know about this
issue. I love all the points you've made.

Here is my blog post ... Sharon: https://toffeebitsandchocolatechips.com/money-talks-with-nicole-aniston-in-dildo-mask-9552
#425 Sofia 16.05.2022 13:08
Thanks for any other excellent article. Where
else could anyone get that type of information in such a perfect manner of writing?
I've a presentation next week, and I am at the search for such information.

Here is my homepage ... Verona: https://robertpattinsonworldwide.com/redhead-pornsstar-bree-daniels-9349
#426 Antoinette 16.05.2022 13:09
Aw, this was a very nice post. Taking a few minutes and actual effort to create a very good article… but what
can I say… I procrastinate a lot and don't seem to get nearly anything
done.

Feel free to visit my web site: Deloris: https://concordiastation.org/young-girl-s-strange-fascinations-50937
#427 Blythe 16.05.2022 13:12
Hi, i read your blog from time to time and i own a similar one and
i was just curious if you get a lot of spam responses?
If so how do you prevent it, any plugin or anything you can advise?
I get so much lately it's driving me mad so any assistance is very much appreciated.



My web-site Pearline: https://nfc-hub.com/tight-teen-kaci-lynn-nailed-by-big-cock-44156
#428 Quentin 16.05.2022 15:04
%%

Here is my website; gacor slot 123: https://www.buyerpricer.com/Go.aspx?lnksrc=aws&rurl=https://is.gd/bocoranslotgacor_41289
#429 Shayne 16.05.2022 15:33
%%

my web-site: joker slot
gacor: http://mardenoticiasguerrero.com.mx/se-reunen-en-acapulco-fiscales-y-procuradores-de-todo-el-pais-se-realiza-la-conferencia-nacional-de-procuracion-de-justicia/
#430 Kristeen 16.05.2022 22:03
%%

My website slot gacor gampang
menang: http://rayadistribution.com/AdRedirect.aspx?Adpath=http://inx.lv/rkEe
#431 Kellee 16.05.2022 23:11
%%

Also visit mmy blog; slot gacor depo pulsa: http://www.chartersecurity.com.au/index.php/2015/10/09/stretch14/
#432 Ivan 17.05.2022 06:51
Fantastic post however I was wondering if you could write
a litte more on this topic? I'd be very grateful if you could elaborate a little bit further.
Cheers!

Here is my webpage; teachingonestep ahead.com: http://ligapokerqq.win/blog/index.php?post/2020/06/25/Tentang-agen-domino-ntpoker
#433 Ingrid 17.05.2022 07:03
%%

my web page ... slot tergacor: http://popckorn.com/44-ideas-que-han-utilizado-las-redes-sociales-y-la-web-para-ir-mas-alla/
#434 Demetria 17.05.2022 12:25
It's not my first time to go to see this website, i am browsing this web page
dailly and take good data from here daily.

My blog; ceri138: http://koyomi.vis.ne.jp/wiki/index.php?shrimpvein23
#435 Rachelle 17.05.2022 13:54
%%

Here is my homepage: slot gacor login: http://thpt-huynhmandat-kiengiang.edu.vn/index.php?language=vi&nv=news&nvvithemever=d&nv_redirect=aHR0cDovL3JvbGxzaHV0dGVydXNhLmNvbS8/b3B0aW9uPWNvbV9rMiZ2aWV3PWl0ZW1saXN0JnRhc2s9dXNlciZpZD01NTM2NTI
#436 Rosetta 17.05.2022 22:39
%%

Here is my blog post :: link slot gacor hari ini: http://radio1.si/Count.aspx?Id=17&link=https://bighorn.exblog.jp/29940782/
#437 Jacquie 17.05.2022 23:39
%%

Here is my web-site: daftar
slot gacor terpercaya: http://mov.sidesee.com/out.cgi?id=00037&url=https://wiki.r3public.org/index.php?title=Salah_Satu_Dengan_Terbaik_Tilikan_Kamu_Kiranya_Sempat_Dapatkan_Akan_Halnya_Slot_Online
#438 Albina 18.05.2022 04:09
Hello, Neat post. There's an issue with your website in internet explorer,
may check this? IE nonetheless is the market leader and a large component to folks will omit
your excellent writing due to this problem.

Also visit my web-site ... Veresas Fuel Saver Price: https://tripsandchips.com/smalllights2/
#439 Jorja 18.05.2022 05:29
%%

Feel free to surf to my web site - QQBARENG: https://atlantaroofing.com/roof6/
#440 Gertie 18.05.2022 09:59
%%

Stop by my page; situs.slot gacor: https://www.thethingsshelikes.com/the-best-oregon-coast-experience-with-salishan-resort/
#441 Eleanor 18.05.2022 12:28
%%

Here is my web blog ... pola
slot gacor hari ini: http://envios.uces.edu.ar/control/click.mod.php?id_envio=1557&email=email&url=https://zoomwiki.blitwise.com/index.php/Apakah_Tersedia_Event_Slot_Online
#442 Randy 18.05.2022 19:38
%%

Feel free to visit my site - slot gacor
terpercaya: https://u1f977.com/index.php/5_Daripada_Slot_Gacor_Aztec_Hari_Ini_Punniest_Puns_Anda_Bisa_Medapati
#443 Lilian 19.05.2022 03:48
%%

Here is my blog post ... slot Gacor Tanpa potongan: https://www.labase-lextenso.fr/redirect/?type=url&id=bangkeogiay.com%2Findex.php%3Flanguage%3Dvi%26nv%3Dnews%26nvvithemever%3Dd%26nv_redirect%3DaHR0cDovL2RhbW13aWxkLm5ldC93aWtpL2luZGV4LnBocD90aXRsZT1CZW51dHplcjpTbG90Z2Fjb3IxM1BoaQ
#444 Maricela 19.05.2022 12:53
%%

Also visit my web-sitegacor slot: https://image.google.mv/url?q=http://www.wangfz.com/link.php?url=http://www.freakyexhibits.net/index.php/Apakah_Ada_Event_Slot_Online
#445 Frank 19.05.2022 14:57
Right away I am ready to do my breakfast, once having my breakfast coming yet
again to read further news.

Here is my website: Brighter Days CBD: http://ztcmedia.mobie.in/tools/sharer/?url=//brighterdayscbd.net
#446 Malcolm 20.05.2022 02:29
%%

Also visit my blog post :: situs gacor slot: http://Choka.Tsurizuki.com/?wptouch_switch=desktop&redirect=https%3A%2F%2Fwww.Ourglocal.com%2Furl%2F%3Furl%3Dhttp%3A%2F%2Fwww.hobbies.bookmarking.site%2Fuser%2Fslotresmi19joc%2F
#447 Barry 20.05.2022 21:51
Hi there, I enjoy reading all of your article. I like to write a little comment to support you.


my web-site ... Ikaria Lean Belly Juice Ingredients: https://fengoffice.com/forum/index.php?action=profile;u=645974
#448 Fae 21.05.2022 03:12
%%

my webpage ... pola slot gacor: https://74.gregorinius.com/index/d1?diff=0&source=og&campaign=5796&content=&clickid=6glaagrcny71ype6&aurl=http%3A%2F%2Fhackfabmake.space%2Findex.php%2FSegala_Sesuatu_Judi_Slot_Online_Tersebut&an=&term=&site=&darken=1&pushMode=popup
#449 Susie 22.05.2022 09:43
Great info and straight to the point. I am
not sure if this is in fact the best place to ask but do
you people have any ideea where to hire some professional writers?
Thanks :)

Also visit my web blog :: Brighter Days CBD
Gummies Reviews: http://betatv25.com/h1/3152837
#450 Audrey 22.05.2022 16:49
The other day, while I was at work, my cousin stole my iphone and tested
to see if it can survive a 40 foot drop, just so she can be a youtube
sensation. My iPad is now destroyed and she has
83 views. I know this is totally off topic but I had to share it with someone!



Also visit my page - Bio Nutra Slim Keto: https://politicsuk.net/culloden/user-20876.html
#451 Hester 22.05.2022 20:50
I am no longer sure where you are getting your info, but good topic.
I must spend some time learning more or understanding more.
Thank you for fantastic information I used
to be in search of this information for my mission.

My site - สมัครเว็บหวย: http://fotoclubbahia.com.ar/community/profile/sersthivip/
#452 Cody 22.05.2022 22:26
%%

my web-site slot gacor dana: https://predit.ru/Forum/index.php/2997720-slot-mana-secara-memiliki-peluang-menang
#453 Tracie 23.05.2022 09:53
Hello there! This is my 1st comment here so I just wanted to give a quick shout out and tell you I genuinely
enjoy reading through your posts. Can you suggest any other blogs/websites/ forums that cover the same topics?

Many thanks!

Feel free to visit my web site :: เว็บหวยเศรษฐี: http://www.teelanconsultancy.com/forum/profile/sersthivip/

Добавить комментарий

Защитный код
Обновить

Бесплатная консультация

Вам нужен сайт, но вы не знаете с чего начать? Оставьте ваши имя и телефон, мы перезвоним и бесплатно проконсультируем Вас.

Бесплатная консультация по телефону:

+7 987 2540267
Ежедневно c 10:00ч до 20:00ч.

 

Услуги | Портфолио | Блог | РБ
Перепечатка информации с сайта www.goinweb.ru, возможна только с указанием активной гиперссылки.
Веб-студия «GOINWEB»: Разработка, продвижение, обслуживание и поддержка веб-сайтов. E-mail:feedback@goinweb.ru
Яндекс.Метрика