This language bar is your friend. Select your favorite languages!

Idiom #184 Tomorrow

Assign to variable t a string representing the day, month and year of the day after the current date.

require 'active_suport'
t = 1.day.since.to_s
require "date"
t = Date.tomorrow.to_s
require "date"
t = (Date.today + 1).to_s
DateTime t = DateTime.Today.AddDays(1);
import "time"
t := time.Now().Add(24 * time.Hour).Format("2006-01-02")
var tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
var currentDate = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
var day = currentDate.getDate()
var month = currentDate.getMonth() + 1
var year = currentDate.getFullYear()
var t = `${day}/${month}/${year}`;
import java.time.LocalDate;
LocalDate t = LocalDate.now().plusDays(1);
$t = new \DateTime('tomorrow');
$t = date('D',strtotime('+1 day'));
SysUtils;
t := DateToStr(Now+1.0);
use DateTime qw();
my $dt = DateTime->today;
$dt->add(days => 1);
my $t = $dt->strftime('%F');
from datetime import date, timedelta
date.today() + timedelta(days=1)
let t = chrono::Utc::now().date().succ().to_string();
Dim t As Date = Date.Today.AddDays(1)

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

steenslag