Date: invalid date trying to set Linux date in specific format

Tags
date, date and time format help, format, linux, set, shell scripts

 
Thread Tools Search this Thread
# 8  
Old 18 Hours Ago
The great thing is that in utilities like "date", "sort" there is a "--debug" option that helps to work on the bugs.
In the output with this option, you can immediately see in the first line where the error:
Code:
parsed date part: (Y-M-D) 0019-01-2017
warning: adjusting year value 19 to 2019

These 3 Users Gave Thanks to nezabudka For This Post:
apmcd47 (15 Hours Ago) Neo (18 Hours Ago) RudiC (12 Hours Ago)

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Cannot use 'date -t' to set the system date and time trolley SCO 6 03-14-2017 12:23 PM
Rename all Files in a UNIX Directory from one date format to another date format pchegoor UNIX for Dummies Questions & Answers 1 10-25-2013 03:32 AM
Compare Date with String in date format mkstool Shell Programming and Scripting 2 03-30-2013 10:11 PM
Converting a date to friday date and finding Min/Max date 2001.arun Shell Programming and Scripting 10 07-30-2012 12:08 PM
finding date numeral from file and check the validity of date format manas_ranjan Shell Programming and Scripting 10 11-18-2011 03:58 PM
Shell Scripts - shows today’s date and time in a better format than ‘date’ (Uses positional paramete citizencro UNIX for Dummies Questions & Answers 3 04-11-2011 10:03 PM
Date after 5 days from current date in YYYYMMDD format needyourhelp10 Shell Programming and Scripting 8 09-30-2010 05:33 PM
Increment Date in a Specific Format dsshishya Shell Programming and Scripting 0 01-05-2010 07:18 PM
How to increment a user defined date value in the DATE format itself using shell script? sunil087 Shell Programming and Scripting 1 12-22-2009 06:29 AM
Set system date to some date (Sunos) hanton Shell Programming and Scripting 4 12-08-2009 06:18 PM
Changing from Excel date format to MySQL date format figaro UNIX for Dummies Questions & Answers 2 08-11-2009 04:23 PM
convert date format to mysql date format in log file hazno Shell Programming and Scripting 3 03-03-2009 09:05 AM
date: invalid date `19010101' freizl Shell Programming and Scripting 8 01-22-2009 12:04 AM
want date in format eg:Nov 12 using date cmd RahulJoshi Shell Programming and Scripting 2 12-05-2008 03:03 PM
date issue-find prevoius date in a patricular format bsandeep_80 UNIX for Advanced & Expert Users 3 11-15-2007 08:42 PM