This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

jamesmintram
I have been reading the docs for Elixir’s Date/DateTime libraries but I cannot find a way to calculate a date which is either N months or...
New
shijith.k
Is it not a right method to compare naive date time values using basic operators like > and < ? I get wrong answers when I compare...
New
wallyfoo
This has been vexing me for a couple of days now, and I finally had a breakthrough. When I’m done with the explanation, please tell me: i...
New
i-n-g-m-a-r
I noticed some weird anomalies in a dataset. Turns out I was mixing Postgres and Elixir numbers. DateTime.diff(~U[2026-03-18 05:50:08.6...
New

Last Three Year's Trending Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
nresni
Hi, I try to retrieve the first and last day of previous month to build a query with a range date. Right now I’m doing this: def foo(%...
New
sehHeiden
While being at it. Not clear about the Date(time) in Explorer anyway. I wrote it as utc_datetime in the SQLite with Ecto. Than in the DB...
New
Sorc96
I have been searching for a way to deal with datetime values coming from forms. The datetime-local input does not care about time zones, ...
New
axelson
In Elixir core is there a function to check if a given timezone is valid? I’m mainly looking at DateTime and Calendar but as far as I ca...
New
bgpratt2000
Hello! I am a BEGINNER and apologize in advance for the elementary questions. I want to do some data transformations to a dataframe in ...
New
gilbertbw
Hello, I am trying to work with DateTimes over leap seconds. I can’t create a %DateTime{} object on a leap second. When using Tz I stil...
New
daviaws
In our journey I found myself questioning of any toolset in Elixir that parses Natural Language to Datetimes, Duration and Relatives. It...
New
sandorbedo
Hi, I have two ways of reading out an integer timestamp (in milliseconds) that seem to give the exact same values: DateTime.utc_now() |...
New
BrightEyesDavid
I have a UTC datetime from a timestamptz PostgreSQL column, and am trying to: convert it to the user’s timezone; output a localised str...
New

Trending Over Three Years Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
9Dave9
Hello, I have a query, where I’d like to grab all records still in the future. def get_scheduled_notification_pushes_from_date(date\\...
New
tomekowal
Hi! I want to display lots of DateTime struct in users local timezone. Is there a standard way of doing that? I see two options: getti...
New
tanweerdev
I have some tests which depends on current time and am not able to find a solution for it so far. I have tried some mocking libraries lik...
New
silverdr
DateTime documentation contains the following sentence: If you want to get the current time in Unix seconds, do not do DateTime.utc_now...
New
GoulvenClech
Hi everyone! I work for a French company and, with our marine territories, our customers live in many timezones. So I’m wondering what i...
New
shahryarjb
Hello, Im using Timex lib in order to create custom time which I need. for example I need something like this: "Mon, 29 Oct 2018 23:38:5...
New
wlminimal
Hi! I want to make a schedule a job for sending emails or texting messages. And I found rihanna. But before do that, I need a more und...
New
nikody
I found various topics discussing the differences and similarities between :naive_datetime and :utc_datetime, namely: In addition, ...
New
hubertlepicki
Coming from Rails, we used to have the feature where we could specify date / time / timestamp formats in our translation files, and then ...
New
stefanluptak
Hi all, I am doing a Stripe integration and I would like to send a scheduled email to the customer. It should be scheduled to a given ti...
New
robinkwilson
Hi! I spent a long time trying to figure out the best way to get all entries in a specific date range. So wanted to share my solution and...
New
joaothallis
I has a DateTime with a tz different of UTC and I need to update your hour, I used Map.put to this: Map.put dt, : hour, 5. Is there a bes...
New
why
Hello, I just ran the following code to time how long a part of a function takes to execute: time1 = NaiveDateTime.utc_now ...some cod...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement