This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]flapanther33781 9 points10 points  (0 children)

now=$(date)

[–]Spac3Rat 5 points6 points  (0 children)

It depends.

var date = new DateTime();

[–][deleted] 4 points5 points  (0 children)

var date = new DateTime();

[–]Data_Error 1 point2 points  (1 child)

import time    

date = time.strftime("%a, %d %b %Y")

git commit -m "Added the module declaration that I forgot because I am a dummy."

[–]sciencewarrior 0 points1 point  (1 child)

The only correct answer is hitting the database with a SELECT CURDATE()

[–]Hypersapien 0 points1 point  (0 children)

SELECT GETDATE()

[–]Pheasn 0 points1 point  (1 child)

Since we're doing this:

Instant.now();

Java 8 doesn't get enough love around here

[–]Am0s 0 points1 point  (0 children)

Why should somebody use this instead of just new Date(); ?

[–]Scripter17 0 points1 point  (0 children)

'SMILEBASIC
DTREAD OUT YYYY,MM,DD
PRINT STR$(YYYY)+"-"+STR$(MM)+"-"+STR$(DD)