Average Joe Posted September 25, 2019 Report Share Posted September 25, 2019 Kā dabūt šādu datuma formātu: "2019. gada 25. septembrī" ? Quote Link to comment Share on other sites More sharing options...
Vecteevs Posted September 25, 2019 Report Share Posted September 25, 2019 https://carbon.nesbot.com/docs/ Šeit noteikti atradīsi Quote Link to comment Share on other sites More sharing options...
Average Joe Posted September 25, 2019 Author Report Share Posted September 25, 2019 Jā, to jau skatījos. Bet tuvākais, ko izdevās dabūt bija "2019. 25. septembris". Quote Link to comment Share on other sites More sharing options...
KillerBean Posted September 25, 2019 Report Share Posted September 25, 2019 $months = array(1=>'janvārī', ..., 12=>'decembrī'); $fullDate = date('Y') . '. gada ' . date('j') . '. ' . $months[date('n')]; https://www.w3schools.com/php/php_arrays.asp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.