Skip to content

Instantly share code, notes, and snippets.

@thallisphp
Last active September 21, 2023 15:45
Show Gist options
  • Save thallisphp/5508804 to your computer and use it in GitHub Desktop.
Save thallisphp/5508804 to your computer and use it in GitHub Desktop.
Array com nomes dos meses e dias da semana em português do Brasil
<?php
$meses = array(
1 => 'Janeiro',
'Fevereiro',
'Março',
'Abril',
'Maio',
'Junho',
'Julho',
'Agosto',
'Setembro',
'Outubro',
'Novembro',
'Dezembro'
);
$meses_abreviado = array(
1 => 'Jan',
'Fev',
'Mar',
'Abr',
'Mai',
'Jun',
'Jul',
'Ago',
'Set',
'Out',
'Nov',
'Dez'
);
$dias_da_semana = array(
'Domingo',
'Segunda-Feira',
'Terça-Feira',
'Quarta-Feira',
'Quinta-Feira',
'Sexta-Feira',
'Sábado'
);
@LeoAltissimo
Copy link

espero que ajude mais alguém hehe.

['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'],
['D', 'S', 'T', 'Q', 'Q', 'S', 'S'],

@FernasG-zz
Copy link

meus herois nao vestem capa, eles tem uma conta no github
valeu familia

@allanvobraun
Copy link

Em js:

const meses = [ 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];

@matmany
Copy link

matmany commented Feb 24, 2021

Vc é um anjo!!!

@matmany
Copy link

matmany commented Feb 24, 2021

Outra a mais ; )
['Dom','Seg','Ter','Qua,'Qui','Sex','Sab']

@RabbitHol3
Copy link

Delicia !

@matheusdsilva01
Copy link

Iniciais dos dias ;)
['D', 'S', 'T', 'Q', 'Q', 'S', 'S']

@VitorNilson
Copy link

Pra quem quiser um array com value:

const MonthsEnum = {months:[
{name: 'Janeiro', value: 'JANEIRO'},
{name: 'Fevereiro', value: 'FEVEREIRO'},
{name: 'Março', value: 'MARCO'},
{name: 'Abril', value: 'ABRIL'},
{name: 'Maio', value: 'MAIO'},
{name: 'Junho', value: 'JUNHO'},
{name: 'Julho', value: 'JULHO'},
{name: 'Agosto', value: 'AGOSTO'},
{name: 'Setembro', value: 'SETEMBRO'},
{name: 'Outubro', value: 'OUTUBRO'},
{name: 'Novembro', value: 'NOVEMBRO'},
{name: 'Dezembro', value: 'DEZEMBRO'},

]};

@LucasLevino
Copy link

Maravilha Amo todos vocês!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment